Update link to Discord #278
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: gh-pages | |
on: | |
push: | |
branches: | |
- master | |
env: | |
MDBOOK: "0.4.15" | |
jobs: | |
build-and-deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
fetch-depth: 0 | |
- name: copy | |
run: | | |
cp LICENSE.txt website | |
cp LICENSE-RU.txt website | |
- name: Install mdbook | |
run: curl -L https://github.com/rust-lang/mdBook/releases/download/v$MDBOOK/mdbook-v$MDBOOK-x86_64-unknown-linux-gnu.tar.gz | tar xz -C ~/.cargo/bin | |
- name: Build book (en) | |
run: mdbook build docs/en -d ../../website/docs/en | |
- name: Build book (ru) | |
run: mdbook build docs/ru -d ../../website/docs/ru | |
- name: Deploy gh-pages | |
uses: peaceiris/actions-gh-pages@v3 | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
publish_dir: ./website | |
cname: re.cleo.li |