Bubble Sorter Scretch neue Logic #36
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: Generate PDF | |
on: | |
push: | |
branches: | |
- 'main' | |
workflow_dispatch: | |
jobs: | |
build-and-deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Build PDFs | |
run: | | |
base_path=$(realpath uebungsanleitungen_liste) | |
for dir in "$base_path"/*/; do | |
if [ -d "$dir" ]; then | |
subfolder_name=$(basename "$dir") | |
echo "Processing directory: $subfolder_name" | |
docker run --rm -v "$(pwd):/data" -w /data/uebungsanleitungen_liste/$subfolder_name --entrypoint xelatex rstropek/pandoc-coderdojo main.tex | |
mv uebungsanleitungen_liste/$subfolder_name/main.pdf uebungsanleitungen_liste/$subfolder_name/$subfolder_name.pdf | |
fi | |
done | |
- name: Publish PDF | |
uses: actions/upload-artifact@v4 | |
with: | |
name: Uebungsanleitungen | |
path: uebungsanleitungen_liste/**/*.pdf |