From a3e63feb61ab13e140f6b074a98d476d4acb8e69 Mon Sep 17 00:00:00 2001 From: Adam Schwartz Date: Mon, 5 Oct 2020 18:15:34 -0400 Subject: [PATCH] deploy terraform to production --- .github/workflows/deploy.yml | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index fd3d96e092384e8..3ea6baba75bbc92 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -512,10 +512,17 @@ jobs: mkdir .docs npm run bootstrap npm run build - npm install -g @cloudflare/wrangler - - run: wrangler publish - env: - CF_API_TOKEN: ${{ secrets.CF_API_TOKEN }} + - name: Publish staging + uses: cloudflare/wrangler-action@1.2.0 + with: + apiToken: ${{ secrets.CF_API_TOKEN }} + workingDirectory: "products/terraform" + - name: Publish production + uses: cloudflare/wrangler-action@1.2.0 + with: + apiToken: ${{ secrets.CF_API_TOKEN }} + workingDirectory: "products/terraform" + environment: "production" deploy-time-services: runs-on: ubuntu-latest