Automate primary production deployments from main
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user