Skip to content

Commit

Permalink
Adjust workflow for main branch usage
Browse files Browse the repository at this point in the history
  • Loading branch information
philip-linaro committed May 21, 2024
1 parent d291876 commit e241351
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,10 @@ jobs:
if [[ "${{ github.ref_name }}" == "staging" ]]; then
echo "env_name=Development" >> $GITHUB_OUTPUT
fi
if [[ "${{ github.ref_name }}" == "main" ]]; then
echo "env_name=Production" >> $GITHUB_OUTPUT
fi
build:
needs: [pre-build]
runs-on: ubuntu-latest
Expand Down Expand Up @@ -69,4 +73,7 @@ jobs:
if [[ "${{ github.ref_name }}" == "staging" ]]; then
export STAGE="dev"
fi
if [[ "${{ github.ref_name }}" == "main" ]]; then
export STAGE="main"
fi
yarn sst deploy --stage $STAGE

0 comments on commit e241351

Please sign in to comment.