From 0304e9db9215f3aa650d5a53405fcc415d39c5d8 Mon Sep 17 00:00:00 2001 From: Jan Silva Date: Tue, 6 Dec 2022 20:32:02 +0100 Subject: [PATCH] Add workflow to deploy on release --- .../firebase-hosting-deploy-release.yml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 .github/workflows/firebase-hosting-deploy-release.yml diff --git a/.github/workflows/firebase-hosting-deploy-release.yml b/.github/workflows/firebase-hosting-deploy-release.yml new file mode 100644 index 0000000..2e92abd --- /dev/null +++ b/.github/workflows/firebase-hosting-deploy-release.yml @@ -0,0 +1,16 @@ +name: Deploy to Firebase Hosting on New Release +on: + push: + branches: + - 'releases/**' +jobs: + build_and_preview: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - run: npm ci && npm run build + - uses: FirebaseExtended/action-hosting-deploy@v0 + with: + repoToken: '${{ secrets.GITHUB_TOKEN }}' + firebaseServiceAccount: '${{ secrets.FIREBASE_SERVICE_ACCOUNT_MOVIELAND_D92B1 }}' + projectId: movieland-d92b1