[to #348] fix gh-pages can not deploy rendered documents (#409)

This commit is contained in:
Jian Zhang 2021-12-15 21:44:45 +08:00 committed by GitHub
parent 655d63fbba
commit 87f37a51ef
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 3 deletions

View File

@ -3,8 +3,7 @@ name: GitHub Pages
on:
push:
branches:
- main
pull_request:
- master
jobs:
deploy:
@ -24,7 +23,7 @@ jobs:
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
if: ${{ github.ref == 'refs/heads/main' }}
if: ${{ github.ref == 'refs/heads/master' }}
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./docs/book