Merge pull request #29 from damirka/edits-and-patches #48
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: github pages | |
on: | |
push: | |
branches: | |
- master | |
jobs: | |
deploy: | |
runs-on: ubuntu-18.04 | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Setup mdBook | |
uses: peaceiris/actions-mdbook@v1 | |
with: | |
mdbook-version: "0.3.7" | |
- run: mdbook build | |
# Chinese version of the book | |
- run: cp -rf theme/ translations/cn/theme/ | |
- run: mdbook build translations/cn | |
- run: mv translations/cn/book book/cn | |
# Korean translation | |
- run: cp -rf theme/ translations/ko/theme/ | |
- run: mdbook build translations/ko | |
- run: mv translations/ko/book book/ko | |
# Turkish version of the book | |
- run: cp -rf theme/ translations/tr/theme/ | |
- run: mdbook build translations/tr | |
- run: mv translations/tr/book book/tr | |
# Russian version of the book | |
- run: cp -rf theme/ translations/ru/theme/ | |
- run: mdbook build translations/ru | |
- run: mv translations/ru/book book/ru | |
- name: Deploy | |
uses: peaceiris/actions-gh-pages@v3 | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
publish_dir: ./book | |
cname: move-book.com |