Skip to content

Deploy

Deploy #43

Workflow file for this run

name: Deploy
on:
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
permissions:
contents: read
deployments: write
packages: read
jobs:
deploy:
name: "Deploy to Cloudflare Workers"
timeout-minutes: 10
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: oven-sh/setup-bun@v2
- run: bun install --frozen-lockfile
- run: bun run build
- uses: cloudflare/wrangler-action@v3
with:
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
preCommands: |
bun run db:migrate ${{ secrets.CLOUDFLARE_DATABASE_NAME }} --remote