Merge pull request #2311 from hermit-os/features #32
This file contains hidden or 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: Deploy Docs | |
| on: | |
| push: | |
| branches: | |
| - main | |
| workflow_dispatch: | |
| permissions: | |
| contents: read | |
| pages: write | |
| id-token: write | |
| concurrency: | |
| group: "pages" | |
| cancel-in-progress: false | |
| env: | |
| CARGO_TERM_COLOR: always | |
| jobs: | |
| deploy_docs: | |
| environment: | |
| name: github-pages | |
| url: ${{ steps.deployment.outputs.page_url }} | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: mkroening/rust-toolchain-toml@main | |
| - run: rustup target add x86_64-unknown-none | |
| - uses: dtolnay/install@cargo-docs-rs | |
| - run: cargo docs-rs --package hermit-kernel --target x86_64-unknown-none | |
| - name: Add HTML redirect to doc root | |
| run: echo '<meta http-equiv="refresh" content="0;url=hermit">' > target/x86_64-unknown-none/doc/index.html | |
| - uses: actions/configure-pages@v5 | |
| - uses: actions/upload-pages-artifact@v4 | |
| with: | |
| path: target/x86_64-unknown-none/doc | |
| - uses: actions/deploy-pages@v4 | |
| id: deployment |