Skip to content

Commit

Permalink
chore: fix release pipeline (#140)
Browse files Browse the repository at this point in the history
## Description

Looks like we can not use a env variable for setting the "environment"
property because the value is evaluated by GitHub action before the
"STAGE" variable is set. See
actions/runner#1189
  • Loading branch information
larsrickert authored Jan 17, 2024
1 parent 1d7d235 commit f5f1a83
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ jobs:
name: Deploy Storybook
runs-on: ubuntu-latest
needs: build
environment: ${{ env.STAGE }}
environment: ${{ github.ref_name == 'main' && 'prod' || 'dev' }}
steps:
- uses: actions/checkout@v4

Expand All @@ -109,7 +109,7 @@ jobs:
name: Deploy documentation
runs-on: ubuntu-latest
needs: build
environment: ${{ env.STAGE }}
environment: ${{ github.ref_name == 'main' && 'prod' || 'dev' }}
steps:
- uses: actions/checkout@v4

Expand Down

0 comments on commit f5f1a83

Please sign in to comment.