File tree Expand file tree Collapse file tree 1 file changed +43
-0
lines changed
Expand file tree Collapse file tree 1 file changed +43
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Deploy to Cloudflare Workers
2+
3+ on :
4+ push :
5+ branches :
6+ - main
7+ workflow_dispatch :
8+
9+ permissions :
10+ contents : read
11+
12+ concurrency :
13+ group : cloudflare-deploy
14+ cancel-in-progress : true
15+
16+ jobs :
17+ deploy :
18+ runs-on : ubuntu-latest
19+ env :
20+ NODE_ENV : production
21+ CLOUDFLARE_ACCOUNT_ID : ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
22+ CLOUDFLARE_API_TOKEN : ${{ secrets.CLOUDFLARE_API_TOKEN }}
23+
24+ steps :
25+ - name : Checkout repository
26+ uses : actions/checkout@v4
27+
28+ - name : Setup pnpm
29+ uses : pnpm/action-setup@v4
30+ with :
31+ version : 8
32+
33+ - name : Setup Node.js
34+ uses : actions/setup-node@v4
35+ with :
36+ node-version : 20
37+ cache : pnpm
38+
39+ - name : Install dependencies
40+ run : pnpm install --frozen-lockfile
41+
42+ - name : Build and deploy to Cloudflare Workers
43+ run : pnpm run deploy
You can’t perform that action at this time.
0 commit comments