Skip to content

Fix cargo lock generation step in test job #62

Fix cargo lock generation step in test job

Fix cargo lock generation step in test job #62

Workflow file for this run

name: GitHub Pages
on:
push:
branches:
- master
jobs:
docs:
name: Generate master API documentation
runs-on: ubuntu-latest
env:
RUSTDOCFLAGS: --cfg=nightly
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install nightly toolchain
uses: dtolnay/rust-toolchain@stable
with:
toolchain: nightly
components: rustfmt
- name: Test
run: cargo test --doc --all-features
- name: Generate
run: cargo doc --all --all-features
- name: Publish
uses: peaceiris/actions-gh-pages@v3
with:
deploy_key: ${{ secrets.ACTIONS_DEPLOY_KEY }}
force_orphan: true
publish_branch: gh-pages
publish_dir: ./target/doc