aboutsummaryrefslogtreecommitdiff
path: root/.github/workflows
diff options
context:
space:
mode:
authorjackyzha0 <[email protected]>2021-03-01 15:57:02 -0800
committerjackyzha0 <[email protected]>2021-03-01 15:57:02 -0800
commit527095c6d897f25db3aeab55fada95e87a627786 (patch)
tree6921ac8a2e78c02a33b26ec3e1d00dcf26a93efb /.github/workflows
parentbetter indentation (diff)
downloadctrl-v-527095c6d897f25db3aeab55fada95e87a627786.tar.xz
ctrl-v-527095c6d897f25db3aeab55fada95e87a627786.zip
add firebase hosting workflow
Diffstat (limited to '.github/workflows')
-rw-r--r--.github/workflows/firebase-hosting-merge.yml22
-rw-r--r--.github/workflows/firebase-hosting-pull-request.yml18
2 files changed, 40 insertions, 0 deletions
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
diff --git a/.github/workflows/firebase-hosting-pull-request.yml b/.github/workflows/firebase-hosting-pull-request.yml
new file mode 100644
index 0000000..28b7d67
--- /dev/null
+++ b/.github/workflows/firebase-hosting-pull-request.yml
@@ -0,0 +1,18 @@
+# This file was auto-generated by the Firebase CLI
+# https://github.com/firebase/firebase-tools
+
+name: Deploy to Firebase Hosting on PR
+'on': pull_request
+jobs:
+ build_and_preview:
+ 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 }}'
+ projectId: ctrl-v-a8efd
+ env:
+ FIREBASE_CLI_PREVIEWS: hostingchannels