ci: add GitHub Pages workflow for Astro site with base path support

This commit is contained in:
Matt
2026-08-25 13:11:43 +00:00
parent 563d9c0eeb
commit 0d9f0d7811
4 changed files with 61 additions and 6 deletions
+3
View File
@@ -1,7 +1,10 @@
import { defineConfig } from 'astro/config'
import tailwindcss from '@tailwindcss/vite'
const isGitHubPages = process.env.GITHUB_ACTIONS === 'true'
export default defineConfig({
output: 'static',
base: isGitHubPages ? '/clustri/' : '/',
vite: { plugins: [tailwindcss()] },
})