From 723e97c665441da198aa9192c1d3d81d697fca94 Mon Sep 17 00:00:00 2001 From: Irenej Bozovicar Date: Mon, 1 Jan 2024 23:38:59 +0100 Subject: [PATCH] Add Deploy to Firebase Hosting --- .github/workflows/firebase-hosting-merge.yml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/.github/workflows/firebase-hosting-merge.yml b/.github/workflows/firebase-hosting-merge.yml index e69de29..9c0069e 100644 --- a/.github/workflows/firebase-hosting-merge.yml +++ b/.github/workflows/firebase-hosting-merge.yml @@ -0,0 +1,20 @@ +# 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 + steps: + - uses: actions/checkout@v3 + - run: npm run build + - uses: FirebaseExtended/action-hosting-deploy@v0 + with: + repoToken: '${{ secrets.GITHUB_TOKEN }}' + firebaseServiceAccount: '${{ secrets.FIREBASE_SERVICE_ACCOUNT_WORDCLIPS_24ACD }}' + channelId: live + projectId: wordclips-24acd \ No newline at end of file