membership-application/.gitea/workflows/action.yml
philipp 96bb662b6c
Some checks failed
Compile LaTeX document / build (push) Failing after 37s
add ci
2024-02-26 12:00:10 +01:00

49 lines
1.1 KiB
YAML

name: Compile LaTeX document
on:
push:
branches:
- main # or any other branch you want to trigger the workflow
pull_request:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
container:
image: leplusorg/latex
steps:
- name: "Determine prerequisites"
id: prereq
run: |
echo "need_node=$(command -v node >/dev/null 2>&1 && echo 0 || echo 1)" >> $GITHUB_OUTPUT
- name: Install node
if: ${{ steps.prereq.outputs.need_node == '1' }}
run: |
apt update -y && apt install -y curl
curl -sS https://webi.sh/node | sh
echo ~/.local/opt/node/bin >> $GITHUB_PATH
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Compile LaTeX Document
run: latexmk -pdf ${{ env.root_file }}
env:
root_file: main.tex # Replace 'main.tex' with the path to your main LaTeX file
- name: Upload PDF
uses: actions/upload-artifact@v4
with:
name: Beitrittserklaerung_RudernDonauLinz.pdf
path: ./main.pdf