Update 服务器更新日志.md #22
Workflow file for this run
This file contains hidden or 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: Workflow Build | |
| on: | |
| push: | |
| branches: | |
| - main | |
| pull_request: | |
| branches: | |
| - main | |
| jobs: | |
| # 自动部署GitPage | |
| gitpage: | |
| runs-on: ubuntu-latest | |
| steps: | |
| # 拉取代码 | |
| - name: Checkout | |
| uses: actions/checkout@master | |
| with: | |
| persist-credentials: false | |
| # 编译出静态页面 | |
| - name: Install and Build | |
| run: npm install && npm run build | |
| # 塞进gh-pages分支(即部署到GitPage) | |
| - name: Deploy | |
| uses: JamesIves/github-pages-deploy-action@releases/v3 | |
| with: | |
| ACCESS_TOKEN: ${{ secrets.ACCESS_TOKEN }} | |
| BRANCH: gh-pages | |
| FOLDER: build |