From bec80dee60aa56ac8c8d2fe9d443eeca44e6137e Mon Sep 17 00:00:00 2001 From: Matthew Chang Date: Mon, 16 Aug 2021 19:39:28 -0700 Subject: [PATCH] Specify environment in deploy staging Action (#634) * Rename Action for clarity * Set Action environment name to pick up correct secrets context --- .github/workflows/push-staging.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/push-staging.yml b/.github/workflows/push-staging.yml index 47567d89..9f38bfef 100644 --- a/.github/workflows/push-staging.yml +++ b/.github/workflows/push-staging.yml @@ -1,15 +1,16 @@ -name: 'deploy' +name: 'deploy-staging' on: # Triggers the workflow on branch and tag creation events create: jobs: - deploy: + deploy_staging: # Only deploy if it has the tag 'release' if: ${{ startsWith(github.ref, 'refs/tags/release') }} runs-on: ubuntu-latest + environment: Staging steps: - name: Cloning repo uses: actions/checkout@v2