Skip to content

Commit cef2d14

Browse files
aborrusoclaude
andcommitted
add github action for quarto build
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent e1b28bb commit cef2d14

1 file changed

Lines changed: 35 additions & 0 deletions

File tree

.github/workflows/build.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: Build site
2+
3+
on:
4+
push:
5+
branches: [main]
6+
paths:
7+
- "*.qmd"
8+
- "*.scss"
9+
- "_quarto.yml"
10+
- "pubblicazioni/**"
11+
- "immagini/**"
12+
workflow_dispatch:
13+
14+
jobs:
15+
build:
16+
runs-on: ubuntu-latest
17+
permissions:
18+
contents: write
19+
20+
steps:
21+
- uses: actions/checkout@v4
22+
23+
- uses: quarto-dev/quarto-actions/setup@v2
24+
with:
25+
version: "1.7.32"
26+
27+
- name: Render
28+
run: quarto render
29+
30+
- name: Commit docs
31+
run: |
32+
git config user.name "github-actions[bot]"
33+
git config user.email "github-actions[bot]@users.noreply.github.com"
34+
git add docs/
35+
git diff --staged --quiet || git commit -m "render" && git push

0 commit comments

Comments
 (0)