Skip to content

Commit

Permalink
Merge pull request #8 from Andi-IM/feature/only_me
Browse files Browse the repository at this point in the history
upgrading configuration for deployment
  • Loading branch information
Andi-IM committed Sep 10, 2023
2 parents e9af6a2 + a4ac723 commit 48f1003
Showing 1 changed file with 19 additions and 8 deletions.
27 changes: 19 additions & 8 deletions .github/workflows/firebase-hosting-pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,27 @@
# https://github.com/firebase/firebase-tools

name: Deploy to Firebase Hosting on PR
'on': pull_request
on:
pull_request:
branches:
- master

jobs:
build_and_preview:
if: '${{ github.event.pull_request.head.repo.full_name == github.repository }}'
runs-on: ubuntu-latest
if: ${{ github.event.pull_request.base.ref == 'master' }}
steps:
- uses: actions/checkout@v3
- run: npm ci && npm run build
- uses: FirebaseExtended/action-hosting-deploy@v0
- 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
repoToken: ${{ secrets.GITHUB_TOKEN }}
firebaseServiceAccount: ${{ secrets.FIREBASE_SERVICE_ACCOUNT_ORCHID_APP_7FE3D }}
projectId: orchid-app-7fe3d

0 comments on commit 48f1003

Please sign in to comment.