ci: 修改 github actions 配置文件

This commit is contained in:
张传龙 2022-04-09 22:59:05 +08:00
parent 4ef58b612f
commit 729337cdc5

View File

@ -12,18 +12,24 @@ jobs:
- name: Checkout - name: Checkout
uses: actions/checkout@v2 uses: actions/checkout@v2
- uses: pnpm/action-setup@v2.2.1
with:
version: 6.32.2
- name: use Node.js 16 - name: use Node.js 16
uses: actions/setup-node@v2.1.2 uses: actions/setup-node@v2.1.2
with: with:
node-version: '16.x' node-version: '16.x'
- name: use pnpm 6.32.2
uses: pnpm/action-setup@v2.2.1
with:
version: 6.32.2
- name: Delete gh-pages branch
run: |
git push origin --delete gh-pages
- name: Build - name: Build
run: | run: |
pnpm install pnpm install
pnpm run build pnpm run build:github
- name: Deploy - name: Deploy
uses: peaceiris/actions-gh-pages@v2.5.0 uses: peaceiris/actions-gh-pages@v2.5.0