-
Notifications
You must be signed in to change notification settings - Fork 0
38 lines (33 loc) · 1013 Bytes
/
deploy_docs.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
name: docs
on:
push:
branches:
- main
workflow_dispatch:
permissions:
contents: write
jobs:
deploy_docs:
runs-on: ubuntu-latest
permissions:
pages: write # to deploy to Pages
id-token: write # to verify the deployment originates from an appropriate source
steps:
- uses: actions/checkout@v4
- uses: DeterminateSystems/nix-installer-action@v16
- uses: DeterminateSystems/magic-nix-cache-action@v8
- name: Configure Git Credentials
run: |
git config user.name github-actions[bot]
git config user.email 41898282+github-actions[bot]@users.noreply.github.com
- name: build docs
run: |
mkdir -p build/docs
nix develop --command just build_docs
- name: upload artifacts
uses: actions/upload-pages-artifact@v3
with:
path: 'build/docs/html'
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4