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:
@@ -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:
|
||||||
|
|||||||
@@ -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",
|
||||||
|
|||||||
Reference in New Issue
Block a user