More whack-a-mole with scopes (#905) #926
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: [main] | |
pull_request: | |
branches: [main] | |
jobs: | |
build: | |
name: Build and Deploy Website | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Install mdBook | |
uses: peaceiris/actions-mdbook@v1.2.0 | |
- run: mdbook build book | |
- name: Rust Cache | |
uses: Swatinem/rust-cache@v2.2.1 | |
- run: cargo xtask doc && mv target/doc book/book | |
# Only deploy when pushing on main, otherwise just run mdbook and cargo doc to check if there are any errors | |
- uses: JamesIves/github-pages-deploy-action@4.1.7 | |
if: ${{ github.event_name == 'push' }} | |
with: | |
branch: gh-pages # The branch the action should deploy to. | |
folder: book/book # The folder the action should deploy. |