Skip to content

🔧 chore(firebase-hosting-pull-request.yml): create .env file with env… #9

🔧 chore(firebase-hosting-pull-request.yml): create .env file with env…

🔧 chore(firebase-hosting-pull-request.yml): create .env file with env… #9

# This file was auto-generated by the Firebase CLI
# https://github.com/firebase/firebase-tools
name: Deploy to staging Firebase Hosting on merge
"on":
push:
branches:
- main
jobs:
build_and_deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
ref: ${{ github.event.pull_request.head.sha }}
- uses: actions/setup-node@v2
with:
node-version: 16
- name: Install Yarn
run: npm install yarn@latest -g
- name: Install Firebase Tools
run: npm install firebase-tools@~9.23.3 -g
- name: Install Dependencies
run: yarn
- 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
APP_LINK_FACEBOOK: https://www.facebook.com/mycure.md
APP_LINK_LINKEDIN: https://www.linkedin.com/company/mycure/mycompany
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:
repoToken: "${{ secrets.GITHUB_TOKEN }}"
firebaseServiceAccount: "${{ secrets.FIREBASE_SERVICE_ACCOUNT_MC_V4_PROD }}"
channelId: live
target: staging
projectId: mc-v4-prod