uni-ausarbeitung/templates/markdown/github-workflow.yml

33 lines
676 B
YAML

name: Build document
on:
push:
branches: [main]
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
container:
image: kingofdog/pandoc-latex:latest
steps:
- uses: actions/checkout@v3
- name: Generate PDF
run: ./build.sh pandoc
- name: Date
run: |
echo "date=$(date +'%Y-%m-%d-%H-%M-%S')" >> $GITHUB_ENV
- name: Rename file
run: |
mv out/main.pdf out/ausarbeitung-${{ env.date }}.pdf
- name: Upload artifact
uses: actions/upload-artifact@v3
with:
name: Ausarbeitung-${{ env.date }}.pdf
path: out/ausarbeitung-${{ env.date }}.pdf