fix(ci): Do not show draft watermark on release files #169
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, pull_request] | |
jobs: | |
build_latex: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Compile all LaTeX documents | |
run: | | |
projects=("control-station-installation" "template" "database-ingestion") | |
for project in "${projects[@]}"; do | |
working_directory="src/dacs-sw/$project" | |
root_file="main.tex" | |
docker run --rm -v ${{ github.workspace }}:/workspace -w /workspace/$working_directory texlive/texlive:latest latexmk -pdf -interaction=nonstopmode $root_file | |
done | |
- name: Rename files and move to single release folder | |
run: | | |
mkdir --parents release | |
mv src/dacs-sw/control-station-installation/main.pdf release/dacs-sw-control-station-installation.pdf | |
mv src/dacs-sw/template/main.pdf release/dacs-sw-template.pdf | |
mv src/dacs-sw/database-ingestion/main.pdf release/dacs-sw-database-ingestion.pdf | |
- name: Upload PDF files | |
uses: actions/upload-artifact@v4 | |
with: | |
name: artifacts | |
path: release/* |