More emojis #15
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
# Render Quarto presentations to PDF | |
name: Build PDFs | |
on: | |
push: | |
pull_request: | |
schedule: | |
- cron: "0 0 15 * *" | |
jobs: | |
build_pdfs: | |
runs-on: ubuntu-latest | |
env: | |
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }} | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: quarto-dev/quarto-actions/setup@v2 | |
with: | |
tinytex: true | |
# These PDFs are there so that git does not check a PDF each change. | |
# The idea is to put the PDFs created by GHA (i.e. this script) | |
# there manually | |
- name: Delete old PDFs | |
run: rm -f $(find . | egrep "pdf$") | |
- uses: quarto-dev/quarto-actions/render@v2 | |
with: | |
to: pdf | |
path: presentation.qmd | |
############################################# | |
# Upload | |
############################################# | |
- name: Upload PDF to the workflow tab | |
uses: actions/upload-artifact@v2 | |
with: | |
name: zipped_presentation | |
path: "**/*.pdf" | |
if-no-files-found: error | |