From 60e9b2c315cd84e496a48412d8b4d79de64908dd Mon Sep 17 00:00:00 2001 From: Lutz Date: Fri, 17 Apr 2026 09:44:44 +0000 Subject: [PATCH 1/3] Adding logic to preview the changes on firebase --- .github/workflows/pr-build.yml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/.github/workflows/pr-build.yml b/.github/workflows/pr-build.yml index ecf0640b3..8eb814afc 100644 --- a/.github/workflows/pr-build.yml +++ b/.github/workflows/pr-build.yml @@ -3,7 +3,7 @@ name: Build PR on: [pull_request] jobs: - build: + deploy_website: runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 @@ -14,3 +14,10 @@ jobs: - run: npm install - run: npm run lint - run: npm run build + - uses: FirebaseExtended/action-hosting-deploy@v0 + with: + repoToken: "${{ secrets.GITHUB_TOKEN }}" + firebaseServiceAccount: "${{ secrets.FIREBASE_SERVICE_ACCOUNT_V8_DEV }}" + projectId: v8-dev + env: + FIREBASE_CLI_PREVIEWS: hostingchannels \ No newline at end of file From df44ad64d418c07e166672d1a7346c3d38508ee7 Mon Sep 17 00:00:00 2001 From: Lutz Date: Fri, 17 Apr 2026 09:47:11 +0000 Subject: [PATCH 2/3] Add exiration time to the preview deployment --- .github/workflows/pr-build.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/pr-build.yml b/.github/workflows/pr-build.yml index 8eb814afc..e5b8915c0 100644 --- a/.github/workflows/pr-build.yml +++ b/.github/workflows/pr-build.yml @@ -19,5 +19,6 @@ jobs: repoToken: "${{ secrets.GITHUB_TOKEN }}" firebaseServiceAccount: "${{ secrets.FIREBASE_SERVICE_ACCOUNT_V8_DEV }}" projectId: v8-dev + expires: 14d env: FIREBASE_CLI_PREVIEWS: hostingchannels \ No newline at end of file From 22b98a98e2ad28c692a18f3f83edf87044f163e9 Mon Sep 17 00:00:00 2001 From: Lutz Date: Fri, 17 Apr 2026 09:55:40 +0000 Subject: [PATCH 3/3] Adjusting permissions for PR deployment workflow --- .github/workflows/pr-build.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/pr-build.yml b/.github/workflows/pr-build.yml index e5b8915c0..4255bc23e 100644 --- a/.github/workflows/pr-build.yml +++ b/.github/workflows/pr-build.yml @@ -2,6 +2,11 @@ name: Build PR on: [pull_request] +permissions: + checks: write + contents: read + pull-requests: write + jobs: deploy_website: runs-on: ubuntu-latest