From 527095c6d897f25db3aeab55fada95e87a627786 Mon Sep 17 00:00:00 2001 From: jackyzha0 Date: Mon, 1 Mar 2021 15:57:02 -0800 Subject: add firebase hosting workflow --- .github/workflows/firebase-hosting-merge.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 .github/workflows/firebase-hosting-merge.yml (limited to '.github/workflows/firebase-hosting-merge.yml') diff --git a/.github/workflows/firebase-hosting-merge.yml b/.github/workflows/firebase-hosting-merge.yml new file mode 100644 index 0000000..4872417 --- /dev/null +++ b/.github/workflows/firebase-hosting-merge.yml @@ -0,0 +1,22 @@ +# 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: + - master +jobs: + build_and_deploy: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - run: npm run build + - uses: FirebaseExtended/action-hosting-deploy@v0 + with: + repoToken: '${{ secrets.GITHUB_TOKEN }}' + firebaseServiceAccount: '${{ secrets.FIREBASE_SERVICE_ACCOUNT_CTRL_V_A8EFD }}' + channelId: live + projectId: ctrl-v-a8efd + env: + FIREBASE_CLI_PREVIEWS: hostingchannels -- cgit v1.2.3