Change useless continue
to empty block
#1767
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: Publish docs | |
on: | |
push: | |
branches: | |
- current | |
- next | |
env: | |
rust_toolchain: nightly | |
jobs: | |
docs: | |
name: Publish docs | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout sources | |
uses: actions/checkout@v4 | |
- name: Install toolchain (${{ env.rust_toolchain }}) | |
uses: dtolnay/rust-toolchain@master | |
with: | |
toolchain: ${{ env.rust_toolchain }} | |
- name: Cache | |
uses: Swatinem/rust-cache@v2 | |
- name: Build docs | |
env: | |
RUSTDOCFLAGS: --cfg docsrs -D warnings | |
run: | | |
cargo doc --no-deps --features full | |
cargo doc --no-deps -p command_attr | |
- name: Prepare docs | |
shell: bash -e -O extglob {0} | |
run: | | |
DIR=${GITHUB_REF/refs\/+(heads|tags)\//} | |
mkdir -p ./docs/$DIR | |
touch ./docs/.nojekyll | |
echo '<meta http-equiv="refresh" content="0;url=serenity/index.html">' > ./docs/$DIR/index.html | |
mv ./target/doc/* ./docs/$DIR/ | |
- name: Deploy docs | |
uses: peaceiris/actions-gh-pages@v3 | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
publish_branch: gh-pages | |
publish_dir: ./docs | |
allow_empty_commit: false | |
keep_files: true |