Skip to content

Commit

Permalink
#3 added id to the firebase deploy operation step
Browse files Browse the repository at this point in the history
  • Loading branch information
mvogelgesang committed Jan 6, 2023
1 parent b89c698 commit 3e9b13c
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions .github/workflows/firebase-hosting-pull-request.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
# 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:
Expand All @@ -11,10 +10,13 @@ jobs:
- uses: actions/checkout@v2
- run: npm install
- run: npm run build
- uses: FirebaseExtended/action-hosting-deploy@v0
- name: Deploy to firebase
id: firebase_output
uses: FirebaseExtended/action-hosting-deploy@v0
with:
repoToken: '${{ secrets.GITHUB_TOKEN }}'
firebaseServiceAccount: '${{ secrets.FIREBASE_SERVICE_ACCOUNT_MVOGELGESANG }}'
projectId: mvogelgesang
- run: npm install -g @lhci/cli@0.3.x
- run: lhci autorun --upload.target=temporary-public-storage --serverBaseUrl=${{needs.build_and_preview.outputs.urls}} || echo "LHCI failed!"
- name: lighthouse CI
run: npm install -g @lhci/cli@0.3.x
run: lhci autorun --upload.target=temporary-public-storage --serverBaseUrl=${{steps.firebase_output.outputs.urls}} || echo "LHCI failed!"

0 comments on commit 3e9b13c

Please sign in to comment.