Build Workflow: Fix Root files names #5
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: Publish LaTeX documents | ||
on: [push, pull_request, workflow_dispatch] | ||
env: | ||
USER_DOC_ROOT: ./user_documentation | ||
TECH_DOC_ROOT: ./tech_documentation | ||
SRC_NAME: root.tex | ||
USER_OUT: 2024_UD1_Chromacase.pdf | ||
TECH_OUT: 2024_TD1_Chromacase.pdf | ||
jobs: | ||
build_latex: | ||
strategy: | ||
fail-fast: true | ||
matrix: | ||
include: | ||
- source: "${{ env.USER_DOC_ROOT }}/${{ env.SRC_NAME }}" | ||
Check failure on line 15 in .github/workflows/build.yml GitHub Actions / Publish LaTeX documentsInvalid workflow file
|
||
out: "$USER_OUT" | ||
- source: "${{ env.TECH_DOC_ROOT }}/${{ env.SRC_NAME }}" | ||
out: "$TECH_OUT" | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Set up Git repository | ||
uses: actions/checkout@v2 | ||
- name: Compile LaTeX document | ||
uses: xu-cheng/latex-action@v2 | ||
with: | ||
root_file: ${{ matrix.source }} | ||
work_in_root_file_dir: true | ||
#TODO Include Font | ||
#TODO Check if needed | ||
#latexmk_shell_escape: true | ||
- name: Rename output | ||
run: | | ||
mv "root.pdf" ${{ matrix.out }} | ||
- name: Upload artifact | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: 2024_DA2_Chromacase | ||
path: ${{ matrix.out }} |