Files
LifeTrinket/.github/workflows/firebase-hosting-mege.yml
Viktor Rådberg 1d6847b8c4 add tracking
2023-08-26 21:52:36 +02:00

22 lines
679 B
YAML

# 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
env:
FIREBASE_ANALYTICS_API_KEY: '${{ secrets.FIREBASE_ANALYTICS_API_KEY }}'
steps:
- uses: actions/checkout@v3
- run: yarn && yarn build && yarn lint
- uses: FirebaseExtended/action-hosting-deploy@v0
with:
repoToken: '${{ secrets.GITHUB_TOKEN }}'
firebaseServiceAccount: '${{ secrets.FIREBASE_SERVICE_ACCOUNT_LIFE_TRINKET }}'
channelId: live
projectId: life-trinket