Skip to content

Build Workflow: Fix Root files names #5

Build Workflow: Fix Root files names

Build Workflow: Fix Root files names #5

Workflow file for this run

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

View workflow run for this annotation

GitHub Actions / Publish LaTeX documents

Invalid workflow file

The workflow is not valid. .github/workflows/build.yml (Line: 15, Col: 21): Unrecognized named-value: 'env'. Located at position 1 within expression: env.USER_DOC_ROOT .github/workflows/build.yml (Line: 17, Col: 21): Unrecognized named-value: 'env'. Located at position 1 within expression: env.TECH_DOC_ROOT
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 }}