Skip to content

Deploy

Deploy #245

Workflow file for this run

name: Deploy
on:
push:
branches: main
paths:
- .github/workflows/deploy.yml
- wrangler.toml
workflow_run:
workflows: Test
branches: main
types: completed
jobs:
deploy:
if: github.event_name == 'push' || github.event.workflow_run.conclusion == 'success'
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/[email protected]
- name: Setup Bun
uses: oven-sh/[email protected]
with:
bun-version: latest
- name: Publish
uses: cloudflare/[email protected]
env:
WORKER_ENDPOINT: ${{ secrets.WORKER_ENDPOINT }}
with:
accountId: ${{ secrets.CF_ACCOUNT_ID }}
apiToken: ${{ secrets.CF_API_TOKEN }}
command: deploy