chore: update build.yml

This commit is contained in:
yanglbme 2021-11-09 09:36:59 +08:00
parent f31ceb0ecf
commit c0f2cccd24

View File

@ -36,13 +36,18 @@ jobs:
run: npm run build run: npm run build
- name: Deploy - name: Deploy
uses: JamesIves/github-pages-deploy-action@4.1.4 uses: JamesIves/github-pages-deploy-action@4.1.5
with: with:
branch: gh-pages branch: gh-pages
folder: dist folder: dist
sync-to-gitee:
runs-on: ubuntu-latest
if: github.repository == 'doocs/md'
needs: build-and-deploy
steps:
- name: Sync to Gitee - name: Sync to Gitee
uses: wearerequired/git-mirror-action@master uses: wearerequired/git-mirror-action@v1
env: env:
SSH_PRIVATE_KEY: ${{ secrets.GITEE_RSA_PRIVATE_KEY }} SSH_PRIVATE_KEY: ${{ secrets.GITEE_RSA_PRIVATE_KEY }}
with: with: