Add Integration tab to event admin (API key + docs) #4
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Deploy PR preview to Firebase Hosting | |
| on: pull_request | |
| # A newer push to the same PR cancels the previous preview build. | |
| concurrency: | |
| group: preview-${{ github.event.pull_request.number }} | |
| cancel-in-progress: true | |
| jobs: | |
| preview: | |
| runs-on: ubuntu-latest | |
| # Secrets are not available to PRs from forks, so skip those. | |
| if: ${{ github.event.pull_request.head.repo.full_name == github.repository }} | |
| permissions: | |
| checks: write | |
| contents: read | |
| pull-requests: write | |
| env: | |
| FIREBASE_SA: ${{ secrets.FIREBASE_SERVICE_ACCOUNT_OPEN_FEEDBACK_42 }} | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version-file: .nvmrc | |
| cache: 'npm' | |
| - name: npm install (ci) | |
| run: npm ci | |
| - name: npm build | |
| run: npm run build | |
| # Skip the deploy (don't fail the job) until the service-account | |
| # secret is configured in the repo settings. | |
| - name: Deploy to Firebase Hosting preview channel | |
| if: ${{ env.FIREBASE_SA != '' }} | |
| uses: FirebaseExtended/action-hosting-deploy@v0 | |
| with: | |
| repoToken: ${{ secrets.GITHUB_TOKEN }} | |
| firebaseServiceAccount: ${{ env.FIREBASE_SA }} | |
| projectId: open-feedback-42 | |
| expires: 7d |