From dcd2bba9e77d4b82b6562b5d2d8d362f48148814 Mon Sep 17 00:00:00 2001 From: Alberto Ito <95650418+Alberto-Ito@users.noreply.github.com> Date: Fri, 20 Dec 2024 11:56:23 -0300 Subject: [PATCH] Add env vars to build step --- .github/workflows/push.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/push.yml b/.github/workflows/push.yml index ba3d9ae2..a535e789 100644 --- a/.github/workflows/push.yml +++ b/.github/workflows/push.yml @@ -73,6 +73,10 @@ jobs: working-directory: aws-lambdas - name: Build Astro site + env: + PUBLIC_API_HOST: ${{ vars.PUBLIC_API_HOST }} + PUBLIC_APPLICATION_API_ENDPOINT: ${{ vars.PUBLIC_APPLICATION_API_ENDPOINT }} + PUBLIC_GAME_API_ENDPOINT: ${{ vars.PUBLIC_GAME_API_ENDPOINT }} run: | yarn install yarn astro build @@ -117,4 +121,4 @@ jobs: export STAGE="dev" # or "main" if you'd like to default to production echo "Deploying with stage: $STAGE" # Always deploy - yarn sst deploy --stage $STAGE \ No newline at end of file + yarn sst deploy --stage $STAGE