Skip to content

updated toolkit-crate plan #14

updated toolkit-crate plan

updated toolkit-crate plan #14

Workflow file for this run

name: Build Docs
on:
push:
branches: [ main ]
workflow_dispatch:
permissions:
contents: read
pages: write
id-token: write
concurrency:
group: pages
cancel-in-progress: false
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/configure-pages@v5
- uses: dtolnay/rust-toolchain@stable
- name: Build docs
run: |
cargo doc --all-features --no-deps
# Add a root index that redirects to the crate docs
echo '<!doctype html><meta http-equiv="refresh" content="0; url=arch_toolkit/index.html">' > target/doc/index.html
- uses: actions/upload-pages-artifact@v3
with:
path: target/doc
deploy:
needs: build
runs-on: ubuntu-latest
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- id: deployment
uses: actions/deploy-pages@v4