-
Notifications
You must be signed in to change notification settings - Fork 1
42 lines (34 loc) · 949 Bytes
/
Copy pathrelease.yml
File metadata and controls
42 lines (34 loc) · 949 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
name: Build and Release PDF
on:
push:
branches: [main]
permissions:
contents: write
jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: cachix/install-nix-action@v31
with:
nix_path: nixpkgs=channel:nixos-unstable
- name: Install dependencies
run: nix-shell --run true
- name: Build PDF
# Twice as label references change after the first run.
run: |
nix-shell --run build
nix-shell --run build
- name: Upload PDF as artifact
uses: actions/upload-artifact@v6
with:
name: ddd-reference
path: ddd-reference.pdf
- name: Update latest release
uses: softprops/action-gh-release@v2
with:
tag_name: latest
name: Latest Build
body: Built from ${{ github.sha }}
files: ddd-reference.pdf
make_latest: true