nixos-config/.github/workflows/site.yml

35 lines
831 B
YAML
Raw Normal View History

2023-07-14 14:08:20 +00:00
name: "Build project site"
2023-07-10 07:35:49 +00:00
on:
workflow_dispatch:
2023-07-10 07:35:49 +00:00
push:
branches:
- master
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: DeterminateSystems/nix-installer-action@v14
2024-09-21 12:15:18 +00:00
- uses: DeterminateSystems/magic-nix-cache-action@v8
2023-07-10 07:35:49 +00:00
- env:
NIXPKGS_ALLOW_UNFREE: "1"
2024-09-22 10:10:32 +00:00
run: nix build .#devPackages.x86_64-linux.website
- uses: actions/upload-pages-artifact@v3
2023-07-10 07:35:49 +00:00
with:
2024-09-22 10:10:32 +00:00
path: "result/"
2023-07-10 07:35:49 +00:00
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
uses: actions/deploy-pages@v4