Skip to content

Commit

Permalink
define env var in github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
lucia-gomez committed Mar 16, 2024
1 parent 4ae378a commit 4cb0da8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
6 changes: 3 additions & 3 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 @@ -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
Expand Down
6 changes: 2 additions & 4 deletions .github/workflows/deploy_production.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ on:
push:
branches:
- prod

env:
REACT_APP_ENVIRONMENT: production
jobs:
deploy:
runs-on: ubuntu-latest
Expand All @@ -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
Expand Down

0 comments on commit 4cb0da8

Please sign in to comment.