Skip to content

hoping git doesn't punish me #33

hoping git doesn't punish me

hoping git doesn't punish me #33

Workflow file for this run

# Run `quarto render` on pull requests (no deploy).
name: Render
on:
pull_request:
workflow_dispatch:
# Read-only is enough for PR builds
permissions:
contents: read
# Avoid overlapping builds on the same PR
concurrency:
group: "quarto-render-${{ github.ref }}"
cancel-in-progress: true
jobs:
render:
runs-on: ubuntu-latest
steps:
- name: Check out repository
uses: actions/checkout@v4
# --- Python setup (if you execute Python code blocks / notebooks) ---
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.11"
- name: Cache pip
uses: actions/cache@v4
with:
path: ~/.cache/pip
key: pip-${{ runner.os }}-${{ hashFiles('**/requirements.txt') }}
restore-keys: |
pip-${{ runner.os }}-
- name: Install Python dependencies (if any)
run: |
python -m pip install --upgrade pip
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
# If your site executes Python via Jupyter:
# pip install jupyter
# --- Quarto CLI ---
- name: Set up Quarto
uses: quarto-dev/quarto-actions/setup@v2
# with:
# version: stable
# tinytex: true # uncomment if rendering PDFs/LaTeX
# Diagnostics (optional)
- name: Quarto version
run: quarto --version
- name: Quarto tools
run: quarto tools
# --- Render only (no publish) ---
- name: Render Quarto Project
uses: quarto-dev/quarto-actions/render@v2
# with:
# path: . # project root (default)
# Upload the rendered site for reviewers (download from PR artifacts)
- name: Upload site artifact
uses: actions/upload-artifact@v4
with:
name: site-preview
path: _site/**