Skip to content

Merge branch 'main' of https://github.com/xyven1/iss-scooter-data-col… #23

Merge branch 'main' of https://github.com/xyven1/iss-scooter-data-col…

Merge branch 'main' of https://github.com/xyven1/iss-scooter-data-col… #23

# This file was auto-generated by the Firebase CLI
# https://github.com/firebase/firebase-tools
name: Deploy to Firebase Hosting on merge
'on':
push:
branches:
- main
jobs:
build_and_deploy:
runs-on: ubuntu-latest
environment: production
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 20
cache: 'npm'
- run: npm ci && npm run build
env:
VITE_GOOGLE_CLIENT_ID: ${{ vars.VITE_GOOGLE_CLIENT_ID }}
VITE_GOOGLE_CLIENT_SECRET: ${{ vars.VITE_GOOGLE_CLIENT_SECRET }}
VITE_BASE_URL: ${{ vars.VITE_BASE_URL }}
- uses: FirebaseExtended/action-hosting-deploy@v0
with:
repoToken: '${{ secrets.GITHUB_TOKEN }}'
firebaseServiceAccount: '${{ secrets.FIREBASE_SERVICE_ACCOUNT_ISS_SCOOTER_DATA_COLLECTION }}'
channelId: live
projectId: iss-scooter-data-collection