Skip to content

Change versioning scheme in workflow #35

Change versioning scheme in workflow

Change versioning scheme in workflow #35

Workflow file for this run

name: Build LaTeX exercises, exams, and slides as PDF
on:
push:
branches:
- main
tags:
- '*.*'
workflow_dispatch:
jobs:
build_documents:
runs-on: ubuntu-latest
steps:
- name: Set up Git repository
uses: actions/checkout@v3
- name: Compile LaTeX exercises
uses: xu-cheng/latex-action@v3
with:
root_file: "week*.tex"
work_in_root_file_dir: true
- name: Compile LaTeX exams
uses: xu-cheng/latex-action@v3
with:
root_file: "exam/*_exam_*.tex"
work_in_root_file_dir: true
- name: Compile LaTeX slides
uses: xu-cheng/latex-action@v3
with:
root_file: "slides/*.tex"
work_in_root_file_dir: true
- name: Create Release
if: startsWith(github.ref, 'refs/tags/v')
uses: ncipollo/release-action@v1
with:
artifacts: "week*.pdf, exam/*_exam_*.pdf, slides/slides_*.pdf"
generateReleaseNotes: true
token: ${{ secrets.GITHUB_TOKEN }}