-
-
Notifications
You must be signed in to change notification settings - Fork 16
45 lines (39 loc) · 1.19 KB
/
compile-typst.yml
File metadata and controls
45 lines (39 loc) · 1.19 KB
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: Compile Typst Slides and Release
on:
push:
branches:
- main
paths:
- 'Curriculum/**/slides/**'
- '.github/workflows/compile-typst.yml'
- 'athena-typst-theme'
permissions:
contents: write
jobs:
compile-and-release:
runs-on: ubuntu-latest
steps:
- name: Checkout repository with submodules
uses: actions/checkout@v4
with:
fetch-depth: 0
submodules: recursive
token: ${{ secrets.ATHENA_FONTS_PAT }}
- uses: cachix/install-nix-action@v26
with:
install_url: https://nixos.org/nix/install
extra_nix_config: |
auto-optimise-store = true
access-tokens = github.com=${{ secrets.GITHUB_TOKEN }}
experimental-features = nix-command flakes
- run: |
nix build .?submodules=1#
- name: Create GitHub Release and upload PDFs
uses: softprops/action-gh-release@v2
with:
tag_name: latest-slides
name: "Latest Compiled Slides"
body: "Compiled PDFs of all slides in the Curriculum directory."
files: result/*.pdf
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}