Skip to content

Commit

Permalink
Update attach-pdf-to-release.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
n15c authored Feb 23, 2024
1 parent 83a7f8d commit fdaeb5c
Showing 1 changed file with 22 additions and 18 deletions.
40 changes: 22 additions & 18 deletions .github/workflows/attach-pdf-to-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,23 +9,27 @@ env:

jobs:
converttopdf:
name: Build PDF
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: baileyjm02/markdown-to-pdf@v1
name: "Generating Statutes"
with:
input_dir: statutes charta house-rules
output_dir: pdfs
# Default is true, can set to false to only get PDF files
build_html: false

- name: Attach Files to Release
run: |
for pdf in pdfs/*.pdf; do
echo "Uploading $(basename "$pdf")"
gh release upload ${{ github.ref_name }} "$pdf" --clobber
done
name: Build PDF
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- name: Build PDFs
run: |-
npm install -g md-to-pdf
mkdir -p pdfs
echo; echo "Generating Statutes"
cat statutes/Vereinsstatuten.md | md-to-pdf > pdfs/vereinsstatuten.pdf
echo; echo "Generating Charta"
cat charta/Charta.md | md-to-pdf > pdfs/charta.pdf
echo; echo "Generating houserules"
cat house-rules/houserules.md | md-to-pdf > pdfs/houserules.pdf
- name: Attach Files to Release
run: |
for pdf in pdfs/*.pdf; do
echo "Uploading $(basename "$pdf")"
gh release upload ${{ github.ref_name }} "$pdf" --clobber
done

0 comments on commit fdaeb5c

Please sign in to comment.