-
-
Notifications
You must be signed in to change notification settings - Fork 0
26 lines (23 loc) · 887 Bytes
/
Copy pathpages-deploy.yml
File metadata and controls
26 lines (23 loc) · 887 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
# SPDX-License-Identifier: MPL-2.0
# Fallback Cloudflare Workers deploy via Direct Upload (wrangler deploy).
# Bypasses the Cloudflare Git Integration build system entirely.
# Uses wrangler deploy (Workers + Assets) rather than the deprecated
# `wrangler pages deploy` now that wrangler.toml uses [assets] syntax.
# Required secrets: CLOUDFLARE_API_TOKEN, CLOUDFLARE_ACCOUNT_ID
name: Deploy to Cloudflare Workers
on:
push:
branches: [main]
workflow_dispatch:
permissions:
contents: read
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
- name: Deploy site/ to Cloudflare Workers (static assets)
run: npx wrangler@latest deploy
env:
CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }}
CLOUDFLARE_ACCOUNT_ID: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}