minor changes to readme (to check rendering) #5
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
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 | ||
env: GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: tinytex: true | ||
- name: Render README.md to PDF | ||
run: | | ||
quarto render README.md --to pdf --output README.pdf | ||
- name: Commit PDF | ||
run: | | ||
git config --global user.name "GitHub Actions" | ||
git config --global user.email "[email protected]" | ||
git add .publish/README.pdf | ||
git commit -m "Add rendered README.pdf" | ||
git push | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |