Merge pull request #56 from LTreeshu/patch-1 #50
This file contains 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: mdbook | |
on: | |
push: | |
branches: | |
- main | |
- master | |
- "releases/*" | |
pull_request: | |
branches: | |
- main | |
- master | |
types: | |
- closed | |
jobs: | |
deploy: | |
runs-on: ubuntu-18.04 | |
steps: | |
- name: Git checkout | |
uses: actions/checkout@v2 | |
- name: Setup mdBook | |
uses: peaceiris/actions-mdbook@v1 | |
with: | |
mdbook-version: '0.4.10' | |
# mdbook-version: 'latest' | |
- run: mdbook build | |
- name: Deploy | |
uses: peaceiris/actions-gh-pages@v3 | |
with: | |
personal_token: ${{ secrets.DEPLOY_KEY }} | |
external_repository: china-programming-languages/china-programming-languages.github.io | |
publish_dir: ./book | |
publish_branch: master | |
user_name: 'github-actions[bot]' | |
user_email: 'github-actions[bot]@users.noreply.github.com' | |