-
Notifications
You must be signed in to change notification settings - Fork 0
37 lines (35 loc) · 968 Bytes
/
build.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
name: Publish PDF to site
on:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Install Nix
uses: cachix/install-nix-action@v13
with:
install_url: https://github.com/numtide/nix-flakes-installer/releases/download/nix-2.4pre20210429_d15a196/install
extra_nix_config: |
experimental-features = flakes nix-command
nix_path: nixpkgs=https://github.com/NixOS/nixpkgs/tarball/master
- uses: cachix/cachix-action@v10
with:
name: yurrriq
skipPush: true
- name: Build PDF
run: |
nix build .#naal.doc
mkdir site
cp -rv result-doc/* site/
- name: Deploy to GitHub Pages
if: success()
uses: crazy-max/ghaction-github-pages@v2
with:
target_branch: gh-pages
build_dir: site
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}