Skip to content

chore/default-api-link #3

chore/default-api-link

chore/default-api-link #3

# This file was auto-generated by the Firebase CLI
# https://github.com/firebase/firebase-tools
name: Deploy to Firebase Hosting on PR
"on": pull_request
jobs:
build_and_preview:
if: "${{ github.event.pull_request.head.repo.full_name == github.repository }}"
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://staging-web-cms.web.app
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/mycuremd
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: preview
target: production
projectId: mc-v4-prod