This repository has been archived by the owner on Sep 13, 2024. It is now read-only.
Build and release slides #4
Workflow file for this run
This file contains 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
name: Build and release slides | |
on: | |
release: | |
types: | |
- published | |
- edited | |
jobs: | |
build-release: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: read | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
ref: ${{ github.event.release.tag_name }} | |
- uses: actions/upload-artifact@master | |
with: | |
name: my-artifact | |
path: path/to/artifact | |
build-slides: | |
runs-on: ubuntu-latest | |
container: ghcr.io/open-s4c/latex:latest | |
steps: | |
- name: Build slides | |
run: | | |
make -C slides LATEXMK=latexmk | |
cp slides/slides.pdf slides-${{ github.event.release.tag_name }}.pdf | |
pubish-slides: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write | |
packages: write | |
steps: | |
- name: Release | |
uses: softprops/action-gh-release@v2 | |
with: | |
files: slides-${{ github.event.release.tag_name }}.pdf |