Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
FrejaTerpPetersen committed Dec 18, 2024
2 parents 6928442 + 7462edd commit eee6e07
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/readme.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Render Markdown to PDF using Quarto

on:
push:
branches:
- main
paths:
- README.md # Only trigger the workflow when README.md changes

jobs:
render-pdf:
runs-on: ubuntu-latest

steps:
- name: Checkout Repository
uses: actions/checkout@v4

- name: Set up Quarto
uses: quarto-dev/quarto-actions/setup@v2

- name: Render README.md to PDF
run: |
quarto render README.md --to pdf --output .publish/README.pdf
- name: Commit PDF
run: |
git config --global user.name "GitHub Actions"
git config --global user.email "actions@github.com"
git add .publish/README.pdf
git commit -m "Add rendered README.pdf"
git push
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit eee6e07

Please sign in to comment.