From e60f7d95bd62baaacd7eefc2987389e00378a0c2 Mon Sep 17 00:00:00 2001 From: Vadim Smakhtin Date: Tue, 22 Oct 2024 15:33:07 +0200 Subject: [PATCH] Added staging autodeploy --- .github/workflows/main.yml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) 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'