# Originally generated by the Firebase CLI # https://github.com/firebase/firebase-tools # entryPoint points the action at web/, where firebase.json and .firebaserc live. name: web / deploy to Firebase Hosting on PR on: pull_request: paths: - 'web/**' - '.github/workflows/web-firebase-hosting-pull-request.yml' permissions: checks: write contents: read pull-requests: write jobs: build_and_preview: if: ${{ github.event.pull_request.head.repo.full_name == github.repository }} runs-on: ubuntu-latest steps: - uses: actions/checkout@v7 - run: npm ci && npm run build working-directory: web - uses: FirebaseExtended/action-hosting-deploy@v0 with: repoToken: ${{ secrets.GITHUB_TOKEN }} firebaseServiceAccount: ${{ secrets.FIREBASE_SERVICE_ACCOUNT_LOOTOO }} projectId: lootoo entryPoint: web