-
-
Notifications
You must be signed in to change notification settings - Fork 10
49 lines (40 loc) · 992 Bytes
/
ci.yaml
File metadata and controls
49 lines (40 loc) · 992 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
name: ci
on:
push:
branches:
- master
workflow_dispatch:
permissions:
id-token: write
pages: write
contents: write
jobs:
docs-build:
runs-on: ubuntu-latest
environment:
name: github-pages
steps:
- name: 📦 Install Nix
uses: cachix/install-nix-action@master
with:
github_access_token: ${{ secrets.GITHUB_TOKEN }}
nix_path: nixpkgs=channel:nixos-unstable
- uses: actions/checkout@v4
name: 🛎️ Checkout
- name: 🏗️ Build
run: nix build -f ./docs -L
- name: 📤 Upload artifacts
id: deployment
uses: actions/upload-pages-artifact@v3
with:
path: ./result
docs-deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
needs: docs-build
steps:
- name: 🚀 Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4