minor #43
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
on: | |
push: | |
branches: [main, master] | |
pull_request: | |
branches: [main, master] | |
schedule: | |
# * is a special character in YAML so you have to quote this string | |
# Trigger once a week, on a Sunday (0) | |
- cron: "0 0 * * 0" | |
name: Build Presentation | |
jobs: | |
build-presentation: | |
runs-on: ubuntu-latest | |
env: | |
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }} | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: r-lib/actions/setup-pandoc@v2 | |
with: | |
pandoc-version: "latest" | |
- uses: quarto-dev/quarto-actions/setup@v2 | |
with: | |
version: pre-release | |
- run: | | |
quarto --version | |
quarto install extension quarto-ext/fontawesome --no-prompt | |
- uses: r-lib/actions/setup-r@v2 | |
with: | |
use-public-rspm: true | |
- uses: r-lib/actions/setup-r-dependencies@v2 | |
with: | |
pak-version: devel | |
upgrade: 'TRUE' | |
extra-packages: | | |
quarto-dev/quarto-r | |
r-lib/sessioninfo | |
- name: Render slides | |
run: | | |
options(crayon.enabled = FALSE) | |
quarto::quarto_render("index.qmd") | |
shell: Rscript {0} | |
- name: Build PDF using decktape | |
run: | | |
rm -rf slides | |
mkdir slides && sudo chmod 777 slides | |
sudo npm install -g --unsafe-perm=true --allow-root decktape | |
docker run --rm -t -v `pwd`:/slides -v ~:/home/user astefanutti/decktape index.html slides/slides.pdf | |
- name: Copy PDF slides to top-level directory | |
run: | | |
cp slides/slides.pdf . && rm -rf slides | |
- uses: stefanzweifel/[email protected] |