Skip to content

Merge pull request #2447 from containers/dependabot/github_actions/ac… #1987

Merge pull request #2447 from containers/dependabot/github_actions/ac…

Merge pull request #2447 from containers/dependabot/github_actions/ac… #1987

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@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4.2.1
- run: .github/install-deps
- name: Select Nightly Toolchain
uses: dtolnay/rust-toolchain@7b1c307e0dcbda6122208f10795a713336a9b35a
with:
toolchain: nightly
components: rustfmt
- name: Setup Cache
uses: actions/cache@3624ceb22c1c5a301c8db4169662070a689d9ea8 # v4.1.1
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@4f9cc6602d3f66b9c108549d475ec49e8ef4d45e # v4.0.0
with:
deploy_key: ${{ secrets.ACTIONS_DEPLOY_KEY }}
publish_branch: gh-pages
publish_dir: ./target/doc
force_orphan: true