From e24135121178c1f92be8d47896278824e24b22bb Mon Sep 17 00:00:00 2001 From: Philip Colmer Date: Tue, 21 May 2024 09:41:04 +0100 Subject: [PATCH] Adjust workflow for main branch usage --- .github/workflows/push.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.github/workflows/push.yml b/.github/workflows/push.yml index 4f1c8cd8..954b1384 100644 --- a/.github/workflows/push.yml +++ b/.github/workflows/push.yml @@ -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 @@ -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