Changed documentation #3
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
# .github/workflows/convert-to-pdf.yml | |
name: Docs to PDF | |
on: | |
push: | |
branches: | |
- main | |
paths: | |
- '*.md' | |
- 'images/**' | |
jobs: | |
converttopdf: | |
name: Build PDF | |
runs-on: ubuntu-latest | |
steps: | |
- name: Set up Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: '20' | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
- name: Convert Markdown to PDF | |
uses: baileyjm02/markdown-to-pdf@v1 | |
with: | |
input_dir: ./ # Root-Verzeichnis für .md-Dateien | |
output_dir: ./pdfs # Output-Pfad innerhalb von GITHUB_WORKSPACE | |
images_dir: ./images # Bilderverzeichnis innerhalb von GITHUB_WORKSPACE | |
image_import: ./images # Pfad für die Bildimportfunktion | |
build_html: false # Nur PDF erzeugen | |
- name: Upload PDFs | |
uses: actions/upload-artifact@v3 | |
with: | |
name: docs | |
path: ./pdfs # Sicherstellen, dass sich der Ausgabepfad innerhalb des Repositories befindet |