Skip to content

Build site

Build site #3

Workflow file for this run

name: Build site
on:
push:
branches: [main]
paths:
- "script/risorse/lista-pubblicazioni.csv"
- "pubblicazioni/**"
- "immagini/**"
- "*.qmd"
- "*.scss"
- "_quarto.yml"
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: write
env:
FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: true
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.11"
- name: Genera QMD
run: python3 script/lista.py
- uses: quarto-dev/quarto-actions/setup@v2
with:
version: "1.7.32"
- name: Render
run: quarto render
- name: Commit docs
run: |
git config user.name "github-actions[bot]"
git config user.email "github-actions[bot]@users.noreply.github.com"
git add docs/
git diff --staged --quiet || git commit -m "render" && git push