From 1e93120932acd163406548f28788a50f056e43f9 Mon Sep 17 00:00:00 2001 From: Arshdeep Singh Date: Fri, 15 May 2026 13:01:04 +0530 Subject: [PATCH 1/3] added firebase hosting feature --- .github/workflows/blui-ci.yml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/.github/workflows/blui-ci.yml b/.github/workflows/blui-ci.yml index d4df069b..f3aa8cd4 100644 --- a/.github/workflows/blui-ci.yml +++ b/.github/workflows/blui-ci.yml @@ -326,6 +326,12 @@ jobs: - name: Build showcase run: pnpm build working-directory: apps/showcase + - name: Save build + uses: actions/upload-artifact@v4 + with: + name: showcase-dist + if-no-files-found: error + path: apps/showcase/dist publish-components: name: Publish Component Library @@ -620,3 +626,24 @@ jobs: clean-exclude: | .nojekyll CNAME + + deploy_showcase_preview: + name: Deploy Showcase Firebase Preview + runs-on: ubuntu-latest + if: ${{ github.event_name == 'pull_request' && github.base_ref == 'dev' && github.event.pull_request.head.repo.full_name == github.repository }} + needs: build_showcase + steps: + - name: Checkout + uses: actions/checkout@v4 + - name: Download build + uses: actions/download-artifact@v4 + with: + name: showcase-dist + path: apps/showcase/dist + - name: Deploy to Firebase Hosting Preview + uses: FirebaseExtended/action-hosting-deploy@v0 + with: + repoToken: ${{ secrets.GITHUB_TOKEN }} + firebaseServiceAccount: ${{ secrets.FIREBASE_SERVICE_ACCOUNT_BLUI_REACT_SHOWCASE }} + projectId: blui-react-showcase + expires: 7d From 3c261616bbf2a215117a9871237e35666f92d26e Mon Sep 17 00:00:00 2001 From: shubham-eaton Date: Thu, 21 May 2026 15:20:27 +0530 Subject: [PATCH 2/3] Changed project id for firebase project --- .github/workflows/blui-ci.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/blui-ci.yml b/.github/workflows/blui-ci.yml index f3aa8cd4..d50ed1c8 100644 --- a/.github/workflows/blui-ci.yml +++ b/.github/workflows/blui-ci.yml @@ -645,5 +645,6 @@ jobs: with: repoToken: ${{ secrets.GITHUB_TOKEN }} firebaseServiceAccount: ${{ secrets.FIREBASE_SERVICE_ACCOUNT_BLUI_REACT_SHOWCASE }} - projectId: blui-react-showcase + projectId: blui-react-showcase-4d420 + entryPoint: apps/showcase expires: 7d From a14e752af0e095cde3980c1c8cb3aca934d76f67 Mon Sep 17 00:00:00 2001 From: shubham-eaton Date: Thu, 21 May 2026 15:32:26 +0530 Subject: [PATCH 3/3] added permission check:write --- .github/workflows/blui-ci.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/blui-ci.yml b/.github/workflows/blui-ci.yml index d50ed1c8..b9138a0f 100644 --- a/.github/workflows/blui-ci.yml +++ b/.github/workflows/blui-ci.yml @@ -14,6 +14,7 @@ on: permissions: pull-requests: write contents: read + checks: write jobs: prettier_lint: