Skip to content

Book GitHub Pages

Book GitHub Pages #116

Workflow file for this run

name: "Book GitHub Pages"
on:
# Allows running this workflow manually
workflow_dispatch:
push:
branches:
- master
- nixos-24.05
permissions:
contents: read
# Only one concurrent deployment
concurrency:
group: "pages"
cancel-in-progress: false
jobs:
deploy:
if: "github.repository_owner == 'epics-extensions'"
permissions:
pages: write
id-token: write
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
# Checkout all documentation versions
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
ref: main
path: dev
persist-credentials: false
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
ref: nixos-24.05
path: nixos-24.05
persist-credentials: false
- uses: cachix/install-nix-action@3715ab1a11cac9e991980d7b4a28d80c7ebdd8f9 # v27
- uses: DeterminateSystems/magic-nix-cache-action@87b14cf437d03d37989d87f0fa5ce4f5dc1a330b # v8
- name: "Build documentation books"
run: |
nix run --print-build-logs './dev#ci-scripts/build-docs-multiversion'
- name: Setup Pages
uses: actions/configure-pages@983d7736d9b0ae728b81ab479565c72886d7745b # v5.0.0
- name: Upload artifact
uses: actions/upload-pages-artifact@56afc609e74202658d3ffba0e8f6dda462b719fa # v3.0.1
with:
path: './book'
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@d6db90164ac5ed86f2b6aed7e0febac5b3c0c03e # v4.0.5