name: Deploy on: push: branches: - main jobs: deploy: runs-on: ubuntu-latest name: Deploy steps: - uses: actions/checkout@v4 - uses: oven-sh/setup-bun@v1 - name: Install run: bun install - name: Test run: bun test # TODO: uncomment this when https://github.com/cloudflare/workers-sdk/issues/5082 is fixed # - name: Verify env # run: bun env:verify # env: # CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }} # IS_CI: true - name: Deploy uses: cloudflare/wrangler-action@v3 with: apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }} environment: production