[cargo-hakari] version 0.9.34 #439
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
on: | |
push: | |
branches: | |
- main | |
workflow_dispatch: | |
name: Docs | |
# Sets permissions to allow deployment to GitHub Pages | |
permissions: | |
contents: read | |
pages: write | |
id-token: write | |
# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued. | |
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete. | |
concurrency: | |
group: "pages" | |
cancel-in-progress: false | |
jobs: | |
build-docs: | |
name: Build documentation | |
concurrency: ci-${{ github.ref }} | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4 | |
- uses: dtolnay/rust-toolchain@nightly | |
# Note: caching doesn't appear to work for rustdoc as of 2022-12-04, and we're exceeding cache | |
# sizes anyway | |
- uses: taiki-e/install-action@just | |
- name: Setup Pages | |
id: pages | |
uses: actions/[email protected] | |
- name: Build rustdoc | |
run: just rustdoc | |
- name: Organize | |
run: | | |
rm -rf target/gh-pages | |
mkdir target/gh-pages | |
mv target/doc target/gh-pages/rustdoc | |
- name: Upload to GitHub Pages | |
uses: actions/[email protected] | |
with: | |
path: target/gh-pages | |
deploy-docs: | |
name: Deploy documentation | |
environment: | |
name: github-pages | |
url: ${{ steps.deployment.outputs.page_url }} | |
runs-on: ubuntu-latest | |
needs: build-docs | |
steps: | |
- name: Deploy to GitHub Pages | |
id: deployment | |
uses: actions/[email protected] |