From 8469abb85a9fe1908d2153b4a7c444a01d862b06 Mon Sep 17 00:00:00 2001 From: lucia <51058748+lucia-gomez@users.noreply.github.com> Date: Sat, 16 Mar 2024 16:23:17 -0400 Subject: [PATCH] move env variable to deploy step --- .github/workflows/deploy_development.yml | 5 ++--- .github/workflows/deploy_production.yml | 4 ++-- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/.github/workflows/deploy_development.yml b/.github/workflows/deploy_development.yml index 9d3f73f6..c1fe4c83 100644 --- a/.github/workflows/deploy_development.yml +++ b/.github/workflows/deploy_development.yml @@ -5,9 +5,6 @@ on: branches: - main -env: - REACT_APP_ENVIRONMENT: development - jobs: deploy: runs-on: ubuntu-latest @@ -33,6 +30,8 @@ jobs: - name: Install clasp run: npm install -g @google/clasp - name: Push to Google Apps Script + env: + REACT_APP_ENVIRONMENT: development run: | cd media_commons_booking_app echo "Yes" | npm run deploy diff --git a/.github/workflows/deploy_production.yml b/.github/workflows/deploy_production.yml index 517b7f32..f8040c9a 100644 --- a/.github/workflows/deploy_production.yml +++ b/.github/workflows/deploy_production.yml @@ -4,8 +4,6 @@ on: push: branches: - prod -env: - REACT_APP_ENVIRONMENT: production jobs: deploy: runs-on: ubuntu-latest @@ -31,6 +29,8 @@ jobs: - name: Install clasp run: npm install -g @google/clasp - name: Push to Google Apps Script + env: + REACT_APP_ENVIRONMENT: production run: | cd media_commons_booking_app npm run deploy