Skip to content

Commit

Permalink
Test deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
sbutz committed Dec 18, 2023
1 parent 451271a commit 302fd44
Showing 1 changed file with 15 additions and 2 deletions.
17 changes: 15 additions & 2 deletions .github/workflows/deploy-on-merge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,26 +6,39 @@ on:
push:
branches:
- master
##TODO: remove
pull_request:
types:
- opened
- synchronize
- reopend
jobs:
firestore_deploy:
runs-on: ubuntu-latest
env:
working-directory: ./firestore
GOOGLE_APPLICATION_CREDENTIALS: /opt/gcp_key.json
steps:
- uses: actions/checkout@v3
- name: Export service account credentials to file
run: echo '${{ secrets.FIREBASE_SERVICE_ACCOUNT_POOLSCORE_1973 }}' > '${{ env.GOOGLE_APPLICATION_CREDENTIALS }}'
- run: npm run deploy
working-directory: ${{env.working-directory}}
working-directory: ${{ env.working-directory }}

functions_deploy:
needs: firestore_deploy
runs-on: ubuntu-latest
env:
working-directory: ./functions
GOOGLE_APPLICATION_CREDENTIALS: /opt/gcp_key.json
steps:
- uses: actions/checkout@v3
- name: Export service account credentials to file
run: echo '${{ secrets.FIREBASE_SERVICE_ACCOUNT_POOLSCORE_1973 }}' > '${{ env.GOOGLE_APPLICATION_CREDENTIALS }}'
- run: npm ci && npm run build
working-directory: ${{env.working-directory}}
working-directory: ${{ env.working-directory }}
- run: npm run deploy
working-directory: ${{ env.working-directory }}

client_deploy:
needs: [firestore_deploy, functions_deploy]
Expand Down

0 comments on commit 302fd44

Please sign in to comment.