Skip to content

Commit d0a6165

Browse files
author
Chris
committed
Simplify Pages deployment - Use single script and let Cloudflare handle branch logic automatically
1 parent 68ffd45 commit d0a6165

File tree

3 files changed

+685
-5
lines changed

3 files changed

+685
-5
lines changed

.github/workflows/ci-cd.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ jobs:
104104

105105
environment:
106106
name: staging
107-
url: https://solar-mining-api-dev.christopher-k.workers.dev
107+
# URL handled automatically by Cloudflare Pages preview deployments
108108

109109
steps:
110110
- name: Checkout code
@@ -189,7 +189,7 @@ jobs:
189189
CLOUDFLARE_ACCOUNT_ID: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
190190

191191
- name: Deploy Pages to production
192-
run: npm run pages:deploy:production
192+
run: npm run pages:deploy
193193
env:
194194
CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }}
195195
CLOUDFLARE_ACCOUNT_ID: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}

0 commit comments

Comments
 (0)