File tree Expand file tree Collapse file tree 1 file changed +45
-8
lines changed
Expand file tree Collapse file tree 1 file changed +45
-8
lines changed Original file line number Diff line number Diff line change 1- name : Deploy Worker
1+ name : Deploy to GitHub Pages
2+
23on :
34 push :
45 branches :
56 - main
7+ workflow_dispatch :
8+
9+ permissions :
10+ contents : read
11+ pages : write
12+ id-token : write
13+
14+ concurrency :
15+ group : " pages"
16+ cancel-in-progress : false
17+
618jobs :
7- deploy :
19+ build :
820 runs-on : ubuntu-latest
9- timeout-minutes : 60
1021 steps :
11- - uses : actions/checkout@v4
12- - name : Build & Deploy Worker
13- uses : cloudflare/wrangler-action@v3
22+ - name : Checkout
23+ uses : actions/checkout@v4
24+
25+ - name : Setup Bun
26+ uses : oven-sh/setup-bun@v1
27+ with :
28+ bun-version : latest
29+
30+ - name : Install dependencies
31+ run : bun install
32+
33+ - name : Build
34+ run : bun run build
35+
36+ - name : Setup Pages
37+ uses : actions/configure-pages@v4
38+
39+ - name : Upload artifact
40+ uses : actions/upload-pages-artifact@v3
1441 with :
15- apiToken : ${{ secrets.CLOUDFLARE_API_TOKEN }}
16- accountId : ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
42+ path : ./_site
43+
44+ deploy :
45+ environment :
46+ name : github-pages
47+ url : ${{ steps.deployment.outputs.page_url }}
48+ runs-on : ubuntu-latest
49+ needs : build
50+ steps :
51+ - name : Deploy to GitHub Pages
52+ id : deployment
53+ uses : actions/deploy-pages@v4
You can’t perform that action at this time.
0 commit comments