We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 170a107 commit 2e6661fCopy full SHA for 2e6661f
1 file changed
.github/workflows/deploy.yml
@@ -21,6 +21,16 @@ jobs:
21
node-version: 20
22
cache: 'npm'
23
24
+ - name: Install Wrangler
25
+ run: npm install -g wrangler
26
+
27
+ - name: Create Cloudflare Pages project
28
+ run: |
29
+ npx wrangler pages project create wuxia-game --production-branch=main --yes || true
30
+ env:
31
+ CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }}
32
+ CLOUDFLARE_ACCOUNT_ID: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
33
34
- name: Install dependencies
35
run: npm ci
36
@@ -34,5 +44,3 @@ jobs:
44
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
45
projectName: wuxia-game
46
directory: dist
37
- # 可选:如果要同时部署 API 函数,使用下面的配置
38
- # 需确保 wrangler.toml 中正确配置了 pages_build
0 commit comments