📦数据可视化 #1306
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: 全量更新索引 | |
on: | |
push: | |
branches: [ master ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node-version: [22.x] | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Use Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v4 | |
with: | |
node-version: ${{ matrix.node-version }} | |
- name: 安装依赖 | |
run: | | |
npm install | |
- name: 索引更新 | |
env: | |
ALGOLIA_APPID: ${{ secrets.ALGOLIA_APP_ID }} | |
ALGOLIA_SECRET: ${{ secrets.ALGOLIA_API_KEY }} | |
run: | | |
npm run update-index |