File tree Expand file tree Collapse file tree 1 file changed +41
-0
lines changed
Expand file tree Collapse file tree 1 file changed +41
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Deploy to Cloudflare Pages
2+
3+ on :
4+ push :
5+ branches :
6+ - main
7+ workflow_dispatch :
8+
9+ concurrency :
10+ group : ${{ github.workflow }}-${{ github.ref }}
11+ cancel-in-progress : true
12+
13+ jobs :
14+ deploy :
15+ runs-on : ubuntu-latest
16+
17+ steps :
18+ - name : Checkout
19+ uses : actions/checkout@v4
20+ with :
21+ fetch-depth : 0
22+
23+ - name : Setup Bun
24+ uses : oven-sh/setup-bun@v1
25+ with :
26+ bun-version : latest
27+
28+ - name : Install dependencies
29+ run : bun install
30+
31+ - name : Build
32+ run : bun run build
33+
34+ - name : Deploy to Cloudflare Pages
35+ uses : cloudflare/pages-action@v1
36+ with :
37+ apiToken : ${{ secrets.CLOUDFLARE_PAGES_TOKEN }}
38+ accountId : ${{ secrets.CLOUDFLARE_PAGES_ACCOUNT }}
39+ projectName : ${{ vars.CLOUDFLARE_PAGES_NAME }}
40+ directory : dist
41+ wranglerVersion : 3
You can’t perform that action at this time.
0 commit comments