update deployment workflow

- Deploy to CF Pages on pushes to 'prod' branch
- Add a script to push main to prod
This commit is contained in:
2026-03-26 12:19:10 -04:00
parent 03fe6377e8
commit d4afa30c4f
2 changed files with 3 additions and 2 deletions

View File

@@ -4,7 +4,7 @@ name: Generate a build and push to Cloudflare Pages
on: on:
push: push:
branches: branches:
- main - prod
jobs: jobs:
build: build:

View File

@@ -29,7 +29,8 @@
"preview": "astro preview", "preview": "astro preview",
"astro": "astro", "astro": "astro",
"generate:og": "tsx scripts/generate-og-image.ts", "generate:og": "tsx scripts/generate-og-image.ts",
"prettier": "prettier --write **/*.{ts,tsx,css,astro} --ignore-path .gitignore" "prettier": "prettier --write **/*.{ts,tsx,css,astro} --ignore-path .gitignore",
"deploy": "git push origin main:prod"
}, },
"dependencies": { "dependencies": {
"@astrojs/check": "^0.9.8", "@astrojs/check": "^0.9.8",