name: Deploy to Cloudflare Workers # Manual-only. This workflow was inherited from upstream zjs81 and deploys the web # build to *its* Cloudflare account; this fork has no Cloudflare secrets, so the old # `push: tags: ['*']` trigger failed on every tag (missing CLOUDFLARE_API_TOKEN). # Disabled the auto-trigger to stop the per-tag failures (chore #120). The job is # preserved for the deliberate Offband web-app launch (Feature #121 / Epic #122), # which will define the proper trigger scope + secrets. on: workflow_dispatch: jobs: deploy: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - name: Setup Flutter uses: subosito/flutter-action@v2 with: # Pinned to the bench toolchain (Dart 3.12.1). Was 3.41.2 with a # comment claiming local parity that had not been true for months. flutter-version: "3.44.1" - name: Setup Bun uses: oven-sh/setup-bun@v2 with: bun-version: latest - name: Get dependencies run: flutter pub get - name: Build Web run: bun run build - name: Deploy to Cloudflare uses: cloudflare/wrangler-action@v3 with: apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }} accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }} command: deploy