This repository has been archived by the owner on Mar 30, 2024. It is now read-only.
Content moved into lang section. #117
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 | |
pull_request: | |
jobs: | |
deploy: | |
runs-on: ubuntu-20.04 | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Setup mdBook | |
uses: peaceiris/actions-mdbook@v1 | |
with: | |
# mdbook-version: '0.4.10' | |
mdbook-version: 'latest' | |
- name: Add link checker | |
run: | | |
mkdir -p mdbook-linkcheck | |
pushd mdbook-linkcheck | |
curl -L https://github.com/Michael-F-Bryan/mdbook-linkcheck/releases/latest/download/mdbook-linkcheck.x86_64-unknown-linux-gnu.zip -o mdbook-linkcheck.zip | |
unzip mdbook-linkcheck.zip | |
chmod +x mdbook-linkcheck | |
popd | |
- run: | | |
# I was _unable_ to get mdbook-linkcheck to work ... | |
# it would check the book, but would generate an empty site. | |
# export PATH=$PWD/mdbook-linkcheck:$PATH | |
mdbook build | |
- name: Deploy | |
uses: peaceiris/actions-gh-pages@v3 | |
if: ${{ github.ref == 'refs/heads/master' }} | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
publish_dir: ./book |