Skip to content

Merge branch 'master' of https://github.com/rajtoshranjan/google-eart… #110

Merge branch 'master' of https://github.com/rajtoshranjan/google-eart…

Merge branch 'master' of https://github.com/rajtoshranjan/google-eart… #110

name: Deploy to Firebase Hosting on merge
'on':
push:
branches:
- master
jobs:
lint-check:
uses: ./.github/workflows/lint.yml
build_and_deploy:
runs-on: ubuntu-latest
needs: lint-check
steps:
- uses: actions/checkout@v2
# Step to create the .env.development file
- name: Create env file
run: |
echo "VITE_MAP_TILER_KEY=${{ secrets.VITE_MAP_TILER_KEY }}" >> ./env-files/.env.development
# Install dependencies and build
- run: npm ci && npm run build
# Firebase deployment
- uses: FirebaseExtended/action-hosting-deploy@v0
with:
repoToken: '${{ secrets.GITHUB_TOKEN }}'
firebaseServiceAccount: '${{ secrets.FIREBASE_SERVICE_ACCOUNT_CG_EARTH }}'
channelId: live
projectId: cg-earth