Skip to content

Commit

Permalink
Add environments to deploy actions
Browse files Browse the repository at this point in the history
  • Loading branch information
Tammo-Feldmann committed Aug 21, 2023
1 parent 504947e commit df32f87
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/deploy-to-production.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ on:
jobs:
build-and-deploy:
runs-on: ubuntu-latest
environment: production

env:
ADMG_ACCESS_TOKEN: ${{ secrets.ADMG_ACCESS_TOKEN }}
Expand All @@ -17,7 +18,7 @@ jobs:
GATSBY_CPU_COUNT: 2
GATSBY_MAPBOX_TOKEN: ${{ secrets.GATSBY_MAPBOX_TOKEN }}
GA_MEASUREMENT_ID: ${{ secrets.GA_MEASUREMENT_ID }}
GATSBY_ADMG_API: ${{ secrets.GATSBY_ADMG_API }}
GATSBY_ADMG_API: ${{ vars.GATSBY_ADMG_API }}

steps:
- name: Cancel Previous Runs
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/deploy-to-staging.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ on:
jobs:
build-and-deploy:
runs-on: ubuntu-latest
environment: staging

if: ${{ github.event.workflow_run.conclusion == 'success' }}

Expand All @@ -22,7 +23,7 @@ jobs:
GATSBY_CPU_COUNT: 2
GATSBY_MAPBOX_TOKEN: ${{ secrets.GATSBY_MAPBOX_TOKEN }}
GA_MEASUREMENT_ID: ${{ secrets.GA_MEASUREMENT_ID }}
GATSBY_ADMG_API: ${{ secrets.GATSBY_ADMG_API }}
GATSBY_ADMG_API: ${{ vars.GATSBY_ADMG_API }}

steps:
- name: Cancel Previous Runs
Expand Down

0 comments on commit df32f87

Please sign in to comment.