Skip to content

Commit 3ce1813

Browse files
committed
Auto-create Cloudflare Pages project via Wrangler before deploying
1 parent 128e82d commit 3ce1813

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

.github/workflows/deploy.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,14 @@ jobs:
3030
- name: Build Project
3131
run: npm run build:pages
3232

33+
- name: Create Cloudflare Pages Project
34+
uses: cloudflare/wrangler-action@v3
35+
continue-on-error: true
36+
with:
37+
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
38+
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
39+
command: pages project create polymarket-extractor --production-branch main
40+
3341
- name: Publish to Cloudflare Pages
3442
uses: cloudflare/wrangler-action@v3
3543
with:

0 commit comments

Comments
 (0)