upgrading configuration for deployment #3
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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: | |
branches: | |
- master | |
jobs: | |
build_and_preview: | |
runs-on: ubuntu-latest | |
if: ${{ github.event.pull_request.base.ref == 'master' }} | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- name: Install dependencies and build | |
run: | | |
npm ci | |
npm run build | |
- name: Deploy to Firebase Hosting | |
uses: FirebaseExtended/action-hosting-deploy@v0 | |
with: | |
repoToken: ${{ secrets.GITHUB_TOKEN }} | |
firebaseServiceAccount: ${{ secrets.FIREBASE_SERVICE_ACCOUNT_ORCHID_APP_7FE3D }} | |
projectId: orchid-app-7fe3d |