Automate primary production deployments from main

This commit is contained in:
Kevin
2026-09-02 10:47:46 -04:00
parent 1b25dc37a6
commit 954b230d05
5 changed files with 31 additions and 18 deletions
+18 -7
View File
@@ -1,14 +1,25 @@
name: Deploy primary production Worker candidate
name: Deploy primary production Worker
on:
push:
branches: [astro-platform-pilot]
paths: [.gitea/workflows/production-candidate.yml]
branches: [main]
paths:
- .gitea/workflows/production-candidate.yml
- astro.config.mjs
- package.json
- package-lock.json
- public/**
- schemas/**
- scripts/**
- sites.json
- sites/www/**
- src/**
- wrangler/www.production.jsonc
workflow_dispatch:
jobs:
candidate:
name: Build and deploy 3031023.xyz candidate
production:
name: Build and deploy 3031023.xyz production
runs-on: ubuntu-latest
permissions:
contents: read
@@ -25,9 +36,9 @@ jobs:
node-version: 22
- name: Install locked dependencies
run: npm ci
- name: Validate and build production candidate
- name: Validate and build production site
run: npm run build:site
- name: Verify production candidate output
- name: Verify production output
run: npm run verify:build
- name: Deploy Worker without custom domains or routes
run: npx wrangler deploy --config wrangler/www.production.jsonc