Build and deploy docs #21
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: Build and deploy docs | |
on: | |
workflow_dispatch: | |
push: | |
paths: | |
- "docs/*" | |
- "modules/extra/**/*" | |
jobs: | |
build: | |
name: Build and deploy docs | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Install Nix | |
uses: DeterminateSystems/nix-installer-action@main | |
with: | |
logger: pretty | |
- name: Build Linux packages | |
run: "nix build -L .#docs-html" | |
- name: Upload Pages Artifact | |
uses: "actions/upload-pages-artifact@v3" | |
with: | |
path: "result" | |
deploy: | |
needs: "build" | |
runs-on: "ubuntu-latest" | |
permissions: | |
pages: "write" | |
id-token: "write" | |
environment: | |
name: "github-pages" | |
url: "${{ steps.deployment.outputs.page_url }}" | |
steps: | |
- name: "Deploy to GitHub Pages" | |
id: "deployment" | |
uses: "actions/deploy-pages@v4" |