feat: add deploy workflow
All checks were successful
deploy to cloudflare pages / deploy (push) Successful in 48s
All checks were successful
deploy to cloudflare pages / deploy (push) Successful in 48s
This commit is contained in:
parent
32af8cd086
commit
6f6cd270eb
1 changed files with 26 additions and 0 deletions
26
.forgejo/workflows/deploy.yml
Normal file
26
.forgejo/workflows/deploy.yml
Normal file
|
@ -0,0 +1,26 @@
|
|||
name: deploy to cloudflare pages
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
|
||||
jobs:
|
||||
deploy:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: oven-sh/setup-bun@v2
|
||||
|
||||
- name: Build
|
||||
run: |
|
||||
bun install --frozen-lockfile
|
||||
bun run build
|
||||
|
||||
- name: Deploy
|
||||
uses: cloudflare/wrangler-action@v3
|
||||
with:
|
||||
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
|
||||
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
|
||||
command: pages deploy
|
Loading…
Add table
Add a link
Reference in a new issue