cargo(deps): bump tokio-util from 0.7.11 to 0.7.12 (#363) #289
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: CD / Docs | |
on: | |
push: | |
branches: [ "master" ] | |
# Allow triggering manual builds | |
workflow_dispatch: | |
permissions: | |
contents: read | |
pages: write | |
id-token: write | |
concurrency: | |
group: "pages-deployment" | |
env: | |
CARGO_TERM_COLOR: always | |
RUSTFLAGS: "--cfg skip_leveldb" | |
jobs: | |
build: | |
name: Generate docs | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install Rust | |
run: rustup toolchain install 1.80.0 --profile minimal | |
- name: Run sccache-cache | |
uses: mozilla-actions/[email protected] | |
- name: Generate documentation | |
run: cargo +1.80.0 doc --no-deps | |
- name: Add root index | |
run: | | |
cd target/doc | |
touch index.html | |
echo "<meta http-equiv=\"refresh\" content=\"0; url=https://teampathfinders.github.io/mirai/mirai/index.html\">" > index.html | |
- name: Upload build artifact | |
uses: actions/upload-pages-artifact@v1 | |
with: | |
path: target/doc | |
deploy: | |
name: Deploy docs | |
needs: build | |
environment: | |
name: github-pages | |
url: ${{ steps.deployment.outputs.page_url }} | |
runs-on: ubuntu-latest | |
steps: | |
- name: Deploy to Github Pages | |
id: deployment | |
uses: actions/deploy-pages@v1 |