This repository has been archived by the owner on Aug 12, 2024. It is now read-only.
small formating change #22
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 LaTeX document | |
on: | |
push: | |
tags: | |
- "v*" | |
jobs: | |
build_latex: | |
runs-on: ubuntu-latest | |
container: | |
image: texlive/texlive:latest | |
steps: | |
- name: Set up Git repository | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- run: git config --system --add safe.directory /__w/thesis/thesis | |
- name: Get previous tag name | |
id: previous_tag | |
env: | |
ref: ${{ github.ref }} | |
run: | | |
output=$(python3 .github/git_tag.py ${ref}) | |
echo "TAGNAME=$output" >> $GITHUB_OUTPUT | |
- name: compile | |
env: | |
tag: ${{ steps.previous_tag.outputs.TAGNAME }} | |
ref: ${{ github.ref }} | |
run: | | |
bash ${GITHUB_WORKSPACE}/.github/compile.sh ${ref} ${tag} | |
- name: upload compiled document | |
uses: softprops/action-gh-release@v1 | |
with: | |
files: | | |
build/*.pdf |