Skip to content

chore(deps): bump syn from 2.0.52 to 2.0.53 (#161) #784

chore(deps): bump syn from 2.0.52 to 2.0.53 (#161)

chore(deps): bump syn from 2.0.52 to 2.0.53 (#161) #784

Workflow file for this run

name: Docs
on: [push, pull_request]
permissions:
actions: write
contents: read
jobs:
docs-rs:
name: docs.rs
runs-on: ubuntu-latest
env:
RUSTDOCFLAGS: -Dwarnings
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@nightly
- uses: dtolnay/install@cargo-docs-rs
- run: cargo docs-rs
rustdoc:
name: Rustdoc
runs-on: ubuntu-latest
env:
RUSTDOCFLAGS: --cfg docsrs
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@nightly
id: rust-toolchain
- uses: actions/cache@v4
with:
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
target/
key: ${{ runner.os }}-cargo-${{ steps.rust-toolchain.outputs.cachekey }}-docs-${{ hashFiles('**/Cargo.toml') }}
restore-keys: |
${{ runner.os }}-cargo-${{ steps.rust-toolchain.outputs.cachekey }}-docs-
${{ runner.os }}-cargo-${{ steps.rust-toolchain.outputs.cachekey }}-
${{ runner.os }}-cargo-
- run: cargo doc --no-deps --all --all-features --document-private-items
- run: chmod -c -R +rX "target/doc"
- run: echo "<meta http-equiv=refresh content=0;url=narrow>" > target/doc/index.html
- if: github.event_name == 'push' && github.ref == 'refs/heads/main'
uses: actions/upload-artifact@v4
with:
name: rustdoc
path: target/doc
deploy:
name: Deploy
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
runs-on: ubuntu-latest
needs: rustdoc
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}/narrow
concurrency:
group: github-pages
cancel-in-progress: true
permissions:
contents: read
pages: write
id-token: write
steps:
- uses: actions/download-artifact@v4
with:
name: rustdoc
- uses: actions/configure-pages@v4
- uses: actions/upload-pages-artifact@v3
with:
path: .
- uses: actions/deploy-pages@v4
id: deployment