diff --git a/.github/workflows/deploy-on-merge.yml b/.github/workflows/deploy-on-merge.yml index f7052ff..0652afa 100644 --- a/.github/workflows/deploy-on-merge.yml +++ b/.github/workflows/deploy-on-merge.yml @@ -6,11 +6,18 @@ 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: ${{ secrets.FIREBASE_SERVICE_ACCOUNT_POOLSCORE_1973 }} steps: - uses: actions/checkout@v3 - run: npm run deploy @@ -21,6 +28,7 @@ jobs: runs-on: ubuntu-latest env: working-directory: ./functions + GOOGLE_APPLICATION_CREDENTIALS: ${{ secrets.FIREBASE_SERVICE_ACCOUNT_POOLSCORE_1973 }} steps: - uses: actions/checkout@v3 - run: npm ci && npm run build