File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -27,6 +27,7 @@ branches:
2727 - context : auto-review
2828 - context : commitlint
2929 - context : dependabot-dedupe
30+ - context : firebase
3031 - context : format
3132 - context : lint
3233 - context : spelling
Original file line number Diff line number Diff line change 1212# - https://docs.github.com/webhooks-and-events/webhooks/webhook-events-and-payloads#pull_request
1313# - https://docs.github.com/webhooks-and-events/webhooks/webhook-events-and-payloads#push
1414# - https://docs.github.com/webhooks-and-events/webhooks/webhook-events-and-payloads#workflow_dispatch
15+ # - https://github.com/FirebaseExtended/action-hosting-deploy
1516# - https://github.com/actions/cache
1617# - https://github.com/actions/cache/discussions/650
1718# - https://github.com/actions/checkout
@@ -204,9 +205,41 @@ jobs:
204205 root : ${{ github.workspace }}
205206 treat_flagged_words_as_errors : true
206207 verbose : true
208+ firebase :
209+ needs :
210+ - commitlint
211+ - format
212+ - lint
213+ - preflight
214+ - spelling
215+ permissions :
216+ checks : write
217+ contents : read
218+ pull-requests : write
219+ runs-on : ubuntu-latest
220+ environment :
221+ name : firebase
222+ steps :
223+ - id : checkout
224+ name : Checkout ${{ env.REF_NAME }}
225+ uses : actions/checkout@v6.0.2
226+ with :
227+ persist-credentials : false
228+ ref : ${{ env.REF }}
229+ - id : deploy
230+ name : Deploy to Firebase Hosting
231+ uses : FirebaseExtended/action-hosting-deploy@v0.10.0
232+ with :
233+ channelId : ${{ env.SHA }}
234+ firebaseServiceAccount : ${{ secrets.FIREBASE_SERVICE_ACCOUNT_FLEXDEVELOPMENTLLC }}
235+ repoToken : ${{ secrets.GITHUB_TOKEN }}
236+ - id : url
237+ name : Print preview channel URL
238+ run : echo ${{ steps.deploy.outputs.details_url }}
207239 artifacts :
208240 needs :
209241 - commitlint
242+ - firebase
210243 - format
211244 - lint
212245 - preflight
You can’t perform that action at this time.
0 commit comments