ci: add site build workflow (#548)

This commit is contained in:
Samuel Berthe 2026-04-10 21:21:04 +02:00 committed by GitHub
parent d31b3f9ba0
commit a4d0b1370c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

36
.github/workflows/site.yml vendored Normal file
View file

@ -0,0 +1,36 @@
name: Site build
on:
pull_request:
paths:
- site/**
push:
branches:
- master
paths:
- site/**
jobs:
site-build:
name: Build Astro site
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v6
- name: Setup Node.js
uses: actions/setup-node@v6
with:
node-version: 20
cache: npm
cache-dependency-path: site/package-lock.json
- name: Install dependencies
working-directory: site
run: npm ci
- name: Build Astro site
working-directory: site
env:
ASTRO_TELEMETRY_DISABLED: "1"
run: npm run build