Skip to content

Merge pull request #2169 from containers/dependabot/cargo/anstyle-que… #1775

Merge pull request #2169 from containers/dependabot/cargo/anstyle-que…

Merge pull request #2169 from containers/dependabot/cargo/anstyle-que… #1775

Workflow file for this run

name: gh-pages
on:
push:
branches:
- main
env:
CARGO_TERM_COLOR: always
jobs:
update:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- run: .github/install-deps
- name: Select Nightly Toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: nightly
override: true
components: rustfmt
- name: Generate lockfile
run: cargo generate-lockfile
- name: Setup Cache
uses: actions/cache@v4
with:
path: |
~/.cargo/registry
~/.cargo/git
target
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
- name: Build Documentation
run: cargo doc --all-features --no-deps
- name: Deploy Documentation
uses: peaceiris/actions-gh-pages@v4
with:
deploy_key: ${{ secrets.ACTIONS_DEPLOY_KEY }}
publish_branch: gh-pages
publish_dir: ./target/doc
force_orphan: true