Fix VSCode check all targets parameter name #515
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: CI | |
on: | |
push: | |
pull_request: | |
jobs: | |
build: | |
runs-on: ubuntu-20.04 | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: dtolnay/rust-toolchain@v1 | |
with: | |
toolchain: nightly | |
components: rust-docs | |
- uses: jontze/action-mdbook@v2 | |
with: | |
token: ${{secrets.GITHUB_TOKEN}} | |
use-mermaid: true | |
- name: Check for broken links | |
run: | | |
curl -sSLo linkcheck.sh \ | |
https://raw.githubusercontent.com/rust-lang/rust/master/src/tools/linkchecker/linkcheck.sh | |
# Cannot use --all here because of the generated redirect pages aren't available. | |
sh linkcheck.sh book | |
- name: Deploy book | |
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }} | |
uses: peaceiris/actions-gh-pages@v3 | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
force_orphan: true | |
publish_dir: ./book |