Skip to content

ci-cd: deploy docs to github pages #1

ci-cd: deploy docs to github pages

ci-cd: deploy docs to github pages #1

Workflow file for this run

name: Docs
on:
push:
branches:
- main
jobs:
rustdoc:
name: Rustdoc
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install Rust
uses: actions-rs/toolchain@v1
with:
profile: minimal
- name: Create rustdoc
run: cargo doc --document-private-items
- name: Upload artifacts
uses: actions/upload-pages-artifact@v2
with:
path: target/doc
deploy:
needs: build

Check failure on line 30 in .github/workflows/doc.yml

View workflow run for this annotation

GitHub Actions / Docs

Invalid workflow file

The workflow is not valid. .github/workflows/doc.yml (Line: 30, Col: 12): Job 'deploy' depends on unknown job 'build'.
permissions:
pages: write
id-token: write
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v2