Add gstd v1.3.0 support #34
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 | |
on: | |
push: | |
branches: [ master ] | |
pull_request: | |
branches: [ master ] | |
workflow_dispatch: | |
permissions: | |
id-token: write | |
pages: write | |
env: | |
CARGO_TERM_COLOR: always | |
jobs: | |
docs: | |
runs-on: ubuntu-latest | |
if: github.actor != 'dependabot[bot]' | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Cache | |
uses: Swatinem/rust-cache@v2 | |
- name: Test doc examples | |
if: github.event_name == 'pull_request' | |
run: cargo test --doc | |
- name: Build docs | |
env: | |
RUSTDOCFLAGS: --enable-index-page -Zunstable-options | |
run: | | |
cargo doc --no-deps --workspace | |
rm -f target/doc/.lock | |
- name: Setup GitHub Pages | |
if: github.event_name == 'push' | |
uses: actions/configure-pages@v3 | |
- name: Upload Pages artifact | |
if: github.event_name == 'push' | |
uses: actions/upload-pages-artifact@v2 | |
with: | |
path: target/doc | |
- name: Deploy to GitHub Pages | |
if: github.event_name == 'push' | |
uses: actions/deploy-pages@v2 |