Skip to content

Commit

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

env:
REACT_APP_ENVIRONMENT: development

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

jobs:
deploy:
runs-on: ubuntu-latest

steps:
- name: Debug env variable
run: |
echo "Environment variable: $REACT_APP_ENVIRONMENT"
- name: Checkout code
uses: actions/checkout@v2

Expand All @@ -29,8 +36,6 @@ 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 d3d627c

Please sign in to comment.