2023-07-14 14:08:20 +00:00
|
|
|
name: "Build project site"
|
2023-07-10 07:35:49 +00:00
|
|
|
on:
|
2023-07-14 14:09:39 +00:00
|
|
|
workflow_dispatch:
|
2023-07-10 07:35:49 +00:00
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- master
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2023-09-14 10:34:13 +00:00
|
|
|
- uses: actions/checkout@v4
|
2024-09-21 11:59:51 +00:00
|
|
|
- uses: DeterminateSystems/magic-nix-cache-action@v8
|
2024-09-21 11:40:08 +00:00
|
|
|
- uses: DeterminateSystems/nix-installer-action@v13
|
2023-07-10 07:35:49 +00:00
|
|
|
- env:
|
|
|
|
NIXPKGS_ALLOW_UNFREE: "1"
|
|
|
|
run: nix develop .#docs --impure -c hugo -s ./docs/
|
2024-01-08 04:47:40 +00:00
|
|
|
- uses: actions/upload-pages-artifact@v3
|
2023-07-10 07:35:49 +00:00
|
|
|
with:
|
|
|
|
path: "docs/public"
|
|
|
|
retention-days: 7
|
|
|
|
|
|
|
|
deploy:
|
|
|
|
needs: 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
|
2024-01-08 04:47:24 +00:00
|
|
|
uses: actions/deploy-pages@v4
|