Skip to content

GHA: Update install-nix-action and checkout (#374) #25

GHA: Update install-nix-action and checkout (#374)

GHA: Update install-nix-action and checkout (#374) #25

Workflow file for this run

---
# This workflow runs when PRs are merged and tags/builds/publishes a release.
# Run when PRs to main are closed.
on:
push:
branches:
- main
workflow_dispatch:
name: Build and publish a release
jobs:
github-pages:
name: Publish user manual to GitHub Pages
runs-on: ubuntu-latest
steps:
- uses: cachix/install-nix-action@7be5dee1421f63d07e71ce6e0a9f8a4b07c2a487 # v31.6.1
with:
github_access_token: ${{ secrets.GITHUB_TOKEN }}
extra_nix_config: |
extra-experimental-features = nix-command flakes
accept-flake-config = true
- name: Checkout code
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
- name: Build user manual
run: |
RESULT=$(nix build --no-link --print-out-paths --print-build-logs .#ghciwatch.user-manual)
cp -r "$RESULT/share/ghciwatch/html-manual" ghciwatch-user-manual
- name: Publish to GitHub Pages
uses: JamesIves/github-pages-deploy-action@6c2d9db40f9296374acc17b90404b6e8864128c8 # v4.7.3
with:
folder: ghciwatch-user-manual/