Adding tinytex and more files #1
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: Check whether the files render | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
render-slides: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
file: | |
- slides | |
- report | |
container: | |
image: rocker/tidyverse:4.4.0 | |
steps: | |
# Check out the repository (git clone) | |
- uses: actions/checkout@v4 | |
# Setup TinyTeX | |
- name: Setup TinyTeX | |
uses: r-lib/actions/setup-tinytex@v2 | |
# Install dependencies (R packages) | |
- name: Install dependencies | |
run: | | |
install2.r data.table slurmR | |
# Render the slides/report using quarto | |
- name: Render ${{ matrix.file }} | |
run: | | |
quarto render ${{ matrix.file }}.qmd | |
# Save the rendered slides/report as an artifact | |
- name: Save as artifact | |
uses: actions/upload-artifact@v4 | |
with: | |
path: ${{ matrix.file }}.html | |
name: ${{ matrix.file }} |