Skip to content

Commit

Permalink
Merge pull request #88 from kachun333/github/staging-preview-workflow
Browse files Browse the repository at this point in the history
[Action] Deploy to Firebase Hosting Staging on Labeled
  • Loading branch information
kachun333 authored Feb 10, 2023
2 parents efc6777 + f1b421b commit e1ef8fe
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 4 deletions.
5 changes: 1 addition & 4 deletions .github/workflows/prod-deploy-on-release.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
# This file was auto-generated by the Firebase CLI
# https://github.com/firebase/firebase-tools

name: Deploy to Firebase Hosting on Release
name: Deploy to Firebase Hosting Live on Release
on:
push:
tags:
Expand Down
19 changes: 19 additions & 0 deletions .github/workflows/staging-deploy-on-labeled.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: Deploy to Firebase Hosting Staging on Labeled
on:
pull_request:
types:
- labeled
jobs:
deploy_staging_preview:
if: |
github.event.pull_request.head.repo.full_name == github.repository &&
github.event.label.name == 'need-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_OURPROMISE }}"
projectId: ourpromise

0 comments on commit e1ef8fe

Please sign in to comment.