Merge pull request #28 from trillium-rs/dependabot/cargo/trillium-rus… #24
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: docs | |
permissions: | |
contents: write | |
pages: write | |
id-token: write | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
docs: | |
name: build rustdocs and put them on github pages | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@master | |
- uses: actions-rs/toolchain@v1 | |
with: | |
toolchain: nightly | |
components: rustfmt, clippy | |
override: true | |
- name: Rust Cache | |
uses: Swatinem/[email protected] | |
- name: Build Documentation | |
run: >- | |
RUSTDOCFLAGS="-Z unstable-options --enable-index-page" | |
cargo +nightly doc | |
--no-deps | |
--all | |
- name: Setup Pages | |
uses: actions/configure-pages@v3 | |
- name: Upload artifact | |
uses: actions/upload-pages-artifact@v2 | |
with: | |
path: ./target/doc | |
- name: Deploy to GitHub Pages | |
id: deployment | |
uses: actions/deploy-pages@v4 |