Merge branch 'master' of https://github.com/rajtoshranjan/google-eart… #110
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |