Skip to content

Commit f7b7bd1

Browse files
author
Hermes Cron
committed
fix: 添加 --prod 标志让 wrangler pages deploy 部署到生产环境
1 parent da821d9 commit f7b7bd1

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

.github/workflows/deploy.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,6 @@ jobs:
5252
echo "Creating wuxia-game project..."
5353
npx wrangler pages project create wuxia-game --production-branch=main 2>&1 | tee /tmp/wrangler_create.txt
5454
fi
55-
echo "--- Deploying to Cloudflare Pages ---"
56-
npx wrangler pages deploy dist --project-name=wuxia-game --commit-message="Deploy from GitHub Actions" 2>&1 | tee /tmp/wrangler_deploy.txt
55+
echo "--- Deploying to Cloudflare Pages (production) ---"
56+
npx wrangler pages deploy dist --project-name=wuxia-game --commit-message="Deploy from GitHub Actions" --prod 2>&1 | tee /tmp/wrangler_deploy.txt
5757
echo "--- Deploy done ---"

0 commit comments

Comments
 (0)