All checks were successful
deploy to cloudflare pages / deploy (push) Successful in 48s
26 lines
544 B
YAML
26 lines
544 B
YAML
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
|