Skip to content

Commit

Permalink
🔧 chore(firebase-hosting-pull-request.yml): create .env file with env…
Browse files Browse the repository at this point in the history
…ironment variables for staging environment

🔧 chore(firebase-hosting-staging.yml): create .env file with environment variables for staging environment
The changes in both files add a step to create a .env file with environment variables for the staging environment. This allows the application to have the necessary configuration for the staging environment, such as API base URL and various app links. This change improves the deployment process by separating the environment-specific configuration from the codebase.
  • Loading branch information
jofftiquez committed Aug 16, 2023
1 parent 8b7cacc commit 9aed988
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/firebase-hosting-pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,9 @@ jobs:
run: npm install firebase-tools@~9.23.3 -g
- name: Install Dependencies
run: yarn
- name: Run Build
env:
- name: Create env file
run: |
cat <<EOF > ./.env
API_BASE_URL: https://api.staging.mycure.md
APP_LINK_CMS_APP: https://twitter.com/mycuremd
APP_LINK_SUPPORT_PAGE: https://mycure.help
Expand All @@ -30,6 +31,8 @@ jobs:
APP_LINK_TWITTER: https://twitter.com/mycureapp
APP_LINK_INSTAGRAM: https://www.instagram.com/mycure.md
APP_LINK_YOUTUBE: https://www.youtube.com/@mycure9489
EOF
- name: Run Build
run: yarn build
- uses: FirebaseExtended/action-hosting-deploy@v0
with:
Expand Down
7 changes: 5 additions & 2 deletions .github/workflows/firebase-hosting-staging.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,9 @@ jobs:
run: npm install firebase-tools@~9.23.3 -g
- name: Install Dependencies
run: yarn
- name: Run Build
env:
- name: Create env file
run: |
cat <<EOF > ./.env
API_BASE_URL: https://api.staging.mycure.md
APP_LINK_CMS_APP: https://twitter.com/mycuremd
APP_LINK_SUPPORT_PAGE: https://mycure.help
Expand All @@ -32,6 +33,8 @@ jobs:
APP_LINK_TWITTER: https://twitter.com/mycureapp
APP_LINK_INSTAGRAM: https://www.instagram.com/mycure.md
APP_LINK_YOUTUBE: https://www.youtube.com/@mycure9489
EOF
- name: Run Build
run: yarn build
- uses: FirebaseExtended/action-hosting-deploy@v0
with:
Expand Down

0 comments on commit 9aed988

Please sign in to comment.