Initial commit #1
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # SPDX-FileCopyrightText: © 2026 Toon Verstraelen <Toon.Verstraelen@UGent.be> | |
| # SPDX-License-Identifier: CC-BY-4.0 | |
| name: Build and Release Slides | |
| on: | |
| push: | |
| branches: | |
| - "**" | |
| tags: | |
| - "**" | |
| workflow_dispatch: | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Check out repository | |
| uses: actions/checkout@v4 | |
| - name: Install Typst 0.14.2 | |
| uses: typst-community/setup-typst@v4 | |
| with: | |
| typst-version: 0.14.2 | |
| - name: Compile slides | |
| run: typst compile slides/slides.typ slides.pdf | |
| - name: Upload slides artifact | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: slides-pdf | |
| path: slides.pdf | |
| release: | |
| needs: build | |
| if: startsWith(github.ref, 'refs/tags/v') | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: write | |
| steps: | |
| - name: Download slides artifact | |
| uses: actions/download-artifact@v4 | |
| with: | |
| name: slides-pdf | |
| - name: Create GitHub release | |
| uses: softprops/action-gh-release@v2 | |
| with: | |
| files: slides.pdf |