We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d8f71bb commit a79e09bCopy full SHA for a79e09b
1 file changed
.github/workflows/deploy.yml
@@ -0,0 +1,33 @@
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
+jobs:
13
+ deploy:
14
+ runs-on: ubuntu-latest
15
+ steps:
16
+ - name: Checkout
17
+ uses: actions/checkout@v4
18
19
+ - name: Setup Node
20
+ uses: actions/setup-node@v4
21
+ with:
22
+ node-version: 20
23
+ cache: npm
24
25
+ - name: Install dependencies
26
+ run: npm ci
27
28
+ - name: Deploy
29
+ uses: cloudflare/wrangler-action@v3
30
31
+ apiToken: ${{ secrets.CF_API_TOKEN }}
32
+ accountId: ${{ secrets.CF_ACCOUNT_ID }}
33
+ command: deploy
0 commit comments