diff --git a/.github/workflows/deploy_development.yml b/.github/workflows/deploy_development.yml index 960ea302..9d3f73f6 100644 --- a/.github/workflows/deploy_development.yml +++ b/.github/workflows/deploy_development.yml @@ -5,6 +5,9 @@ on: branches: - main +env: + REACT_APP_ENVIRONMENT: development + jobs: deploy: runs-on: ubuntu-latest @@ -18,9 +21,6 @@ jobs: with: node-version: "18" - - name: Set deploy mode environment variable - run: echo "REACT_APP_ENVIRONMENT=development" >> $GITHUB_ENV - - name: Install dependencies run: | cd media_commons_booking_app diff --git a/.github/workflows/deploy_production.yml b/.github/workflows/deploy_production.yml index 76507b40..517b7f32 100644 --- a/.github/workflows/deploy_production.yml +++ b/.github/workflows/deploy_production.yml @@ -4,7 +4,8 @@ on: push: branches: - prod - +env: + REACT_APP_ENVIRONMENT: production jobs: deploy: runs-on: ubuntu-latest @@ -18,9 +19,6 @@ jobs: with: node-version: "18" - - name: Set deploy mode environment variable - run: echo "REACT_APP_ENVIRONMENT=production" >> $GITHUB_ENV - - name: Install dependencies run: | cd media_commons_booking_app