Skip to content
This repository was archived by the owner on Oct 30, 2025. It is now read-only.

Commit 3232b59

Browse files
committed
fix: added deployment config
1 parent f176020 commit 3232b59

1 file changed

Lines changed: 16 additions & 28 deletions

File tree

.github/workflows/deploy.yml

Lines changed: 16 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,22 @@
1-
name: Deploy to github.io
1+
name: Deploy
22

33
on:
4-
push:
5-
branches:
6-
- main
4+
push:
5+
branches:
6+
- main
77

88
jobs:
9-
deploy:
10-
runs-on: ubuntu-latest
11-
steps:
12-
- name: Checkout
13-
uses: actions/checkout@v2
14-
with:
15-
fetch-depth: 0
16-
submodules: recursive
9+
deploy:
10+
runs-on: ubuntu-latest
11+
name: Deploy
12+
steps:
13+
- uses: actions/checkout@v4
1714

18-
- uses: actions/setup-node@v2
19-
with:
20-
node-version: 16
15+
- build: npm run build
2116

22-
- name: npm install
23-
run: |
24-
npm install
25-
26-
- name: npm build
27-
run: |
28-
npm run build
29-
30-
- name: Deploy to github.io
31-
uses: JamesIves/github-pages-deploy-action@4.1.1
32-
with:
33-
branch: gh-pages
34-
folder: samples
17+
- name: Deploy to Production
18+
uses: cloudflare/wrangler-action@v3
19+
with:
20+
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
21+
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
22+
wranglerVersion: "4.19.1"

0 commit comments

Comments
 (0)