Skip to content

Change repo location #22

Change repo location

Change repo location #22

Workflow file for this run

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
- 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 }}