bug fixed: getInstances is not defined #26
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: Build and Deploy | |
on: | |
push: | |
branches: | |
- main # 当推送到主分支时触发构建 | |
workflow_dispatch: # 手动触发事件 | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
- name: Set up Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: '20.17.0' | |
- name: Install dependencies | |
run: npm install | |
- name: Build the project | |
run: npm run build # 根据你的项目配置修改这个命令 | |
- name: Deploy to another repository | |
uses: peaceiris/actions-gh-pages@v3 | |
with: | |
github_token: ${{ secrets.MINIMAP_GUI_RELEASE }} | |
publish_dir: ./dist # 这里指定你的编译结果目录 | |
publish_branch: flask-deploy # 要推送到的目标仓库的分支 |