Skip to content

Merge pull request #2 from TomBener/pandoc-3.4 #25

Merge pull request #2 from TomBener/pandoc-3.4

Merge pull request #2 from TomBener/pandoc-3.4 #25

on:
push:
branches:
- main
name: Publish
permissions:
contents: write
pages: write
jobs:
build-deploy:
runs-on: ubuntu-latest
steps:
- name: Check out repository
uses: actions/checkout@v4
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: "3.10"
cache: "pip"
cache-dependency-path: "requirements.txt"
- name: Install Python packages
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Setup R
uses: r-lib/actions/setup-r@v2
- name: Cache R packages
uses: actions/cache@v4
with:
path: ${{ env.R_LIBS_USER }}
key: ${{ runner.os }}-r-${{ hashFiles('DESCRIPTION') }}
restore-keys: ${{ runner.os }}-r-
- name: Install R packages
run: |
Rscript -e "install.packages(c('knitr', 'rmarkdown', 'ggplot2'))"
- name: Set up Quarto
uses: quarto-dev/quarto-actions/setup@v2
with:
version: "pre-release"
tinytex: true
- name: Render outputs
run: |
make
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./outputs