Skip to content

Commit

Permalink
move env variable to deploy step
Browse files Browse the repository at this point in the history
  • Loading branch information
lucia-gomez committed Mar 16, 2024
1 parent 4cb0da8 commit 8469abb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/deploy_development.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,6 @@ on:
branches:
- main

env:
REACT_APP_ENVIRONMENT: development

jobs:
deploy:
runs-on: ubuntu-latest
Expand All @@ -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
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/deploy_production.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@ on:
push:
branches:
- prod
env:
REACT_APP_ENVIRONMENT: production
jobs:
deploy:
runs-on: ubuntu-latest
Expand All @@ -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
Expand Down

0 comments on commit 8469abb

Please sign in to comment.