Skip to content

Fix release file include #8

Fix release file include

Fix release file include #8

Workflow file for this run

name: Build LaTeX document
on: [push]
jobs:
build-latex:
runs-on: ubuntu-latest
name: Build latex (print=${{ matrix.print }})
strategy:
matrix:
print: [true, false]
steps:
- name: Set up Git repository
uses: actions/checkout@v4
- name: Configure print vs. digital
run: echo "\settoggle{print}{${{ matrix.print }}}" > Thesis/set_print_toggle.tex
- name: Compile LaTeX document
uses: xu-cheng/latex-action@v3
with:
working_directory: Thesis
root_file: master.tex
- name: Upload PDF file
uses: actions/upload-artifact@v4
with:
name: PDF-${{ matrix.print && 'print' || 'digital' }}
path: Thesis/master.pdf
release:
runs-on: ubuntu-latest
needs: build-latex
if: startsWith(github.ref, 'refs/tags/')
steps:
- name: Download artifacts
uses: actions/download-artifact@v4
- name: Release
uses: softprops/action-gh-release@v2
with:
files: |
PDF-print
PDF-digital