From 36a26b01e18f93f5809245d8ca7c178d852c179c Mon Sep 17 00:00:00 2001 From: Aaron Powell Date: Thu, 29 Jan 2026 13:16:23 +1100 Subject: [PATCH] ci: update deploy workflow for Astro website - Install both root and website dependencies - Run website:data to generate JSON files - Build Astro site in website directory - Deploy from website/dist --- .github/workflows/deploy-website.yml | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/.github/workflows/deploy-website.yml b/.github/workflows/deploy-website.yml index 9e93a456..7fae37fc 100644 --- a/.github/workflows/deploy-website.yml +++ b/.github/workflows/deploy-website.yml @@ -1,5 +1,5 @@ # GitHub Pages deployment workflow -# Builds the website data and deploys to GitHub Pages +# Builds the Astro website and deploys to GitHub Pages name: Deploy Website to GitHub Pages @@ -46,11 +46,19 @@ jobs: node-version: '20' cache: 'npm' - - name: Install dependencies + - name: Install root dependencies run: npm ci + - name: Install website dependencies + run: npm ci + working-directory: ./website + - name: Generate website data - run: npm run website:build-data + run: npm run website:data + + - name: Build Astro site + run: npm run build + working-directory: ./website - name: Setup Pages uses: actions/configure-pages@v5 @@ -58,7 +66,7 @@ jobs: - name: Upload artifact uses: actions/upload-pages-artifact@v3 with: - path: './website' + path: './website/dist' # Deployment job deploy: