Skip to content

Commit

Permalink
Test deployment (#51)
Browse files Browse the repository at this point in the history
  • Loading branch information
sbutz authored Dec 18, 2023
2 parents 451271a + cfc8645 commit feaf786
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions .github/workflows/deploy-on-merge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,21 +11,28 @@ jobs:
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 feaf786

Please sign in to comment.