Skip to content

Commit

Permalink
Updated PDF.
Browse files Browse the repository at this point in the history
  • Loading branch information
dennykorsukewitz committed Mar 19, 2024
1 parent 3e92148 commit 1d6be48
Showing 1 changed file with 24 additions and 53 deletions.
77 changes: 24 additions & 53 deletions .github/workflows/pdf.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ on:
# paths:
# - "doc/de/*.md"
# - "doc/en/*.md"
# - "doc/de/images/*"
# - "doc/en/images/*"
workflow_dispatch: # Allows you to run this workflow manually from the Actions tab

# jobs:
Expand All @@ -33,59 +35,28 @@ jobs:
# Default is true, can set to false to only get PDF files
build_pdf: true
build_html: true
- uses: actions/upload-artifact@v4
with:
name: ${{ github.event.repository.name }}DE.pdf
# path: doc/de/${{ github.event.repository.name }}DE.pdf
path: doc/de/

# - name: Create PDF Document (de)
# uses: shrink/actions-document-publish@v1
# id: de-document
# with:
# sources: "doc/de/front.md doc/de/feature.md doc/de/config.md"
# - name: Upload Document (de)
# uses: actions/upload-artifact@v4
# id: upload-de-document
# with:
# name: "${{ github.event.repository.name }}DE.pdf"
# path: ${{ steps.de-document.outputs.pdf }}
- name: Create PDF Document (en)
uses: baileyjm02/markdown-to-pdf@v1
with:
input_dir: doc/en
output_dir: doc/en
images_dir: doc/en/images
# for example <img src="./images/file-name.png">
# image_import: ./images
# Default is true, can set to false to only get PDF files
build_pdf: true
build_html: true

# - name: Create PDF Document (en)
# uses: shrink/actions-document-publish@v1
# id: en-document
# with:
# sources: "doc/de/front.md doc/en/feature.md doc/en/config.md"
# - name: Upload Document (en)
# uses: actions/upload-artifact@v4
# id: upload-en-document
# with:
# name: "${{ github.event.repository.name }}EN.pdf"
# path: ${{ steps.en-document.outputs.pdf }}
- name: Add and Commit
uses: EndBug/add-and-commit@v9
with:
message: "Updated PDF Documents."
- uses: actions/upload-artifact@v4
with:
name: PDF
path: |
doc/de/${{ github.event.repository.name }}.pdf
doc/en/${{ github.event.repository.name }}.pdf
# path: doc/de/

# Download-And-Commit:
# name: "Download and Commit"
# runs-on: ubuntu-latest
# needs: [PDF]
# steps:
# - name: Checkout repository
# uses: actions/checkout@v4
# env:
# fetch-depth: "1"
# - name: Git Pull
# run: git pull
# - name: Download artifact metrics-svg
# uses: actions/download-artifact@v4
# with:
# name: "${{ github.event.repository.name }}EN.pdf"
# path: .github/metrics/
# - name: Download artifact metrics-data
# uses: actions/download-artifact@v4
# with:
# with:
# name: "${{ github.event.repository.name }}DE.pdf"
# path: .github/metrics/data/
# - name: Add and Commit
# uses: EndBug/add-and-commit@v9
# with:
# message: "Updated Metrics."

0 comments on commit 1d6be48

Please sign in to comment.