Skip to content

Commit 54496f4

Browse files
authored
Merge pull request #691 from limzykenneth/main
Setup deployment to Cloudflare Workers
2 parents 0d8012f + c703bbc commit 54496f4

4 files changed

Lines changed: 2227 additions & 9 deletions

File tree

.github/workflows/deploy.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: Deploy Processing Website
2+
3+
on:
4+
push:
5+
branches: [main]
6+
workflow_dispatch:
7+
8+
permissions:
9+
contents: read
10+
id-token: write
11+
12+
jobs:
13+
build-deploy:
14+
runs-on: ubuntu-latest
15+
steps:
16+
- uses: actions/checkout@v4
17+
- name: Use Node.js 22
18+
uses: actions/setup-node@v4
19+
with:
20+
node-version: 22
21+
- name: Install dependencies
22+
run: npm install
23+
- name: Build website
24+
run: npm run build
25+
- name: Deploy to Cloudflare Workers
26+
uses: cloudflare/wrangler-action@v4
27+
with:
28+
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
29+
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
30+

0 commit comments

Comments
 (0)