update info #229
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: Hexo Build & Deploy | |
| on: | |
| # 触发事件 | |
| push: | |
| # 排除分支 | |
| branches-ignore: | |
| - 'html' | |
| # 工作流 | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout branch main | |
| uses: actions/checkout@v2 | |
| with: | |
| ref: main | |
| path: . | |
| # 工具安装 | |
| - name: Use Node.js | |
| uses: actions/setup-node@v3 | |
| with: | |
| node-version: '20' | |
| - name: Install dependencies | |
| run: npm install | |
| # 构建 | |
| - name: Build | |
| run: npm run build | |
| # 部署 | |
| - name: Deploy | |
| uses: JamesIves/github-pages-deploy-action@v4.5.0 | |
| with: | |
| branch: html | |
| folder: public |