From ae9ea618c5975e84fc6866164034c6ba690caa35 Mon Sep 17 00:00:00 2001 From: Dan Cojocaru Date: Mon, 6 Dec 2021 14:43:04 +0200 Subject: [PATCH] Configure to generate preview on push to Frontend --- .github/workflows/firebase-hosting-merge.yml | 1 - .github/workflows/firebase-hosting-pull-request.yml | 9 ++++++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/.github/workflows/firebase-hosting-merge.yml b/.github/workflows/firebase-hosting-merge.yml index e62448d..bf07d0a 100644 --- a/.github/workflows/firebase-hosting-merge.yml +++ b/.github/workflows/firebase-hosting-merge.yml @@ -6,7 +6,6 @@ name: Deploy to Firebase Hosting on push push: branches: - master - - Frontend jobs: build_and_deploy: runs-on: ubuntu-latest diff --git a/.github/workflows/firebase-hosting-pull-request.yml b/.github/workflows/firebase-hosting-pull-request.yml index 404f944..6cb48b4 100644 --- a/.github/workflows/firebase-hosting-pull-request.yml +++ b/.github/workflows/firebase-hosting-pull-request.yml @@ -2,7 +2,14 @@ # https://github.com/firebase/firebase-tools name: Deploy to Firebase Hosting on PR -'on': pull_request +'on': + pull_request: + branches: + - master + - Frontend + push: + branches: + - Frontend jobs: build_and_preview: if: '${{ github.event.pull_request.head.repo.full_name == github.repository }}'