Skip to content

Feature/refactor code (#164) #35

Feature/refactor code (#164)

Feature/refactor code (#164) #35

name: Deploy on merge PR to "main" branch
env:
CI: ""
on:
push:
branches:
- main
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- run: npm install
- run: echo "${{ secrets.DOT_ENV }}" > .env # create .env file to use in build
- run: npm run build
- uses: FirebaseExtended/action-hosting-deploy@v0
with:
repoToken: '${{ secrets.GITHUB_TOKEN }}'
firebaseServiceAccount: '${{ secrets.FIREBASE_SERVICE_ACCOUNT_MENDISPHERE }}' # refer to this https://github.com/FirebaseExtended/action-hosting-deploy/blob/main/docs/service-account.md
channelId: live
projectId: mindbetter-bettersg