-
Notifications
You must be signed in to change notification settings - Fork 30
45 lines (37 loc) · 856 Bytes
/
pages.yml
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
name: pages
on:
push:
branches:
- main
paths:
- 'docs/**'
- 'modules/**'
- 'README.md'
jobs:
deploy:
runs-on: ubuntu-latest
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- uses: actions/checkout@v3
with:
submodules: true
fetch-depth: 0
- name: install nix
uses: cachix/install-nix-action@v20
- name: configure cache
uses: DeterminateSystems/magic-nix-cache-action@v1
- name: build
run: nix run '.#docs' -- --minify
- name: upload
uses: actions/upload-pages-artifact@v1
with:
path: './docs/public'
- name: deploy
id: deployment
uses: actions/deploy-pages@v2
permissions:
contents: read
pages: write
id-token: write