From 3b94d1b9ffead1cac47ff566e89e6ca717aa9436 Mon Sep 17 00:00:00 2001 From: Samuel Berthe Date: Fri, 10 Apr 2026 21:20:44 +0200 Subject: [PATCH] ci: add site build workflow --- .github/workflows/site.yml | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 .github/workflows/site.yml diff --git a/.github/workflows/site.yml b/.github/workflows/site.yml new file mode 100644 index 0000000..734b769 --- /dev/null +++ b/.github/workflows/site.yml @@ -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