2023-02-10 12:54:46 +00:00
|
|
|
name: Build document
|
2022-09-14 07:51:05 +00:00
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches: [main]
|
|
|
|
|
|
|
|
workflow_dispatch:
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
container:
|
|
|
|
image: kingofdog/pandoc-latex:latest
|
|
|
|
steps:
|
2023-02-10 12:54:46 +00:00
|
|
|
- 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
|
2022-09-14 07:51:05 +00:00
|
|
|
|
2023-02-10 12:54:46 +00:00
|
|
|
- name: Rename file
|
|
|
|
run: |
|
|
|
|
mv out/main.pdf out/ausarbeitung-${{ env.date }}.pdf
|
2022-09-14 07:51:05 +00:00
|
|
|
|
2023-02-10 12:54:46 +00:00
|
|
|
- name: Upload artifact
|
|
|
|
uses: actions/upload-artifact@v3
|
2022-09-14 07:51:05 +00:00
|
|
|
with:
|
2023-02-10 12:54:46 +00:00
|
|
|
name: Ausarbeitung-${{ env.date }}.pdf
|
|
|
|
path: out/ausarbeitung-${{ env.date }}.pdf
|