Skip to content

Commit

Permalink
Update firebase-hosting-pull-request.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
shiv3679 authored Feb 29, 2024
1 parent ed85b64 commit 3bcbe6e
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions .github/workflows/firebase-hosting-pull-request.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,10 @@
# 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:
- main
name: Deploy to Firebase Hosting on PR
'on': pull_request
jobs:
build_and_deploy:
build_and_preview:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Expand All @@ -17,11 +14,14 @@ jobs:
- name: Build
run: npm run build
working-directory: ./aiden_frontend
- uses: FirebaseExtended/action-hosting-deploy@v0
- name: Deploy to Firebase Hosting
uses: FirebaseExtended/action-hosting-deploy@v0
with:
repoToken: '${{ secrets.GITHUB_TOKEN }}'
firebaseServiceAccount: '${{ secrets.FIREBASE_SERVICE_ACCOUNT_AIDEN_SHIV }}'
projectId: aiden-shiv
# Ensure this step understands it's operating from the root of the aiden_frontend directory
env:
# Ensure the Firebase CLI uses the correct project directory
FIREBASE_CLI_PREVIEWS: hostingchannels
working-directory: ./aiden_frontend

0 comments on commit 3bcbe6e

Please sign in to comment.