diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 3789bc961..5905d28ed 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -48,10 +48,17 @@ jobs: with: node-version: '20' cache: 'pnpm' - - name: Deploy @sni/api + - name: Deploy @sni/api [PRODUCTION] uses: cloudflare/wrangler-action@9681c2997648301493e78cacbfb790a9f19c833f # v3 with: apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }} workingDirectory: './apps/api' packageManager: 'pnpm' environment: 'production' + - name: Deploy @sni/api [STAGING] + uses: cloudflare/wrangler-action@9681c2997648301493e78cacbfb790a9f19c833f # v3 + with: + apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }} + workingDirectory: './apps/api' + packageManager: 'pnpm' + environment: 'staging'