From 00cf62f8409c7a8e61a34c4c6aedb9b21e29995b Mon Sep 17 00:00:00 2001 From: Aamogh <120258212+aamoghS@users.noreply.github.com> Date: Tue, 16 Dec 2025 15:12:59 -0500 Subject: [PATCH 1/6] uhhhh --- .github/workflows/pr-firebase-deploy.yml | 30 ++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 .github/workflows/pr-firebase-deploy.yml diff --git a/.github/workflows/pr-firebase-deploy.yml b/.github/workflows/pr-firebase-deploy.yml new file mode 100644 index 0000000..6979c65 --- /dev/null +++ b/.github/workflows/pr-firebase-deploy.yml @@ -0,0 +1,30 @@ +name: Deploy MainWeb to Firebase Hosting (Preview) +on: + pull_request: + branches: + - main + +permissions: + contents: read + pull-requests: write + checks: write + +jobs: + build_and_preview: + runs-on: ubuntu-latest + defaults: + run: + working-directory: sites/mainweb + + steps: + - uses: actions/checkout@v4 + - run: pnpm install + - run: | + pnpm build + pnpm export + - uses: FirebaseExtended/action-hosting-deploy@v0 + with: + repoToken: ${{ secrets.GITHUB_TOKEN }} + firebaseServiceAccount: ${{ secrets.FIREBASE_SERVICE_ACCOUNT_DSGT }} + projectId: dsgt-website + channelId: pr-${{ github.event.pull_request.number }} From a464d618b19eee245de5ca35fe39f935b5db9dd5 Mon Sep 17 00:00:00 2001 From: Aamogh <120258212+aamoghS@users.noreply.github.com> Date: Tue, 16 Dec 2025 15:15:34 -0500 Subject: [PATCH 2/6] uuuuuhjhhhhhh --- .github/workflows/pr-firebase-deploy.yml | 22 +++++++++++++++------- 1 file changed, 15 insertions(+), 7 deletions(-) diff --git a/.github/workflows/pr-firebase-deploy.yml b/.github/workflows/pr-firebase-deploy.yml index 6979c65..d1c4456 100644 --- a/.github/workflows/pr-firebase-deploy.yml +++ b/.github/workflows/pr-firebase-deploy.yml @@ -1,8 +1,10 @@ -name: Deploy MainWeb to Firebase Hosting (Preview) +name: Deploy MainWeb to Firebase Hosting + on: - pull_request: + push: branches: - main + pull_request: permissions: contents: read @@ -10,7 +12,7 @@ permissions: checks: write jobs: - build_and_preview: + build_and_deploy: runs-on: ubuntu-latest defaults: run: @@ -18,13 +20,19 @@ jobs: steps: - uses: actions/checkout@v4 - - run: pnpm install - - run: | + + - name: Install dependencies + run: pnpm install + + - name: Build & Export + run: | pnpm build pnpm export - - uses: FirebaseExtended/action-hosting-deploy@v0 + + - name: Deploy to Firebase Hosting + uses: FirebaseExtended/action-hosting-deploy@v0 with: repoToken: ${{ secrets.GITHUB_TOKEN }} firebaseServiceAccount: ${{ secrets.FIREBASE_SERVICE_ACCOUNT_DSGT }} projectId: dsgt-website - channelId: pr-${{ github.event.pull_request.number }} + channelId: ${{ github.event_name == 'pull_request' && format('pr-{0}', github.event.pull_request.number) || 'live' }} From 532c81fc0bf113e46b009bfcb28c2ae5df5bdcbf Mon Sep 17 00:00:00 2001 From: Aamogh <120258212+aamoghS@users.noreply.github.com> Date: Tue, 16 Dec 2025 15:16:32 -0500 Subject: [PATCH 3/6] CHUDMAXXING --- .github/workflows/pr-firebase-deploy.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.github/workflows/pr-firebase-deploy.yml b/.github/workflows/pr-firebase-deploy.yml index d1c4456..844fcbd 100644 --- a/.github/workflows/pr-firebase-deploy.yml +++ b/.github/workflows/pr-firebase-deploy.yml @@ -21,6 +21,14 @@ jobs: steps: - uses: actions/checkout@v4 + - name: Setup Node.js + uses: actions/setup-node@v3 + with: + node-version: 20 + + - name: Install pnpm + run: npm install -g pnpm + - name: Install dependencies run: pnpm install From 6d9291cf44371f9e10a54399ecec132c0d565868 Mon Sep 17 00:00:00 2001 From: Aamogh <120258212+aamoghS@users.noreply.github.com> Date: Tue, 16 Dec 2025 15:19:49 -0500 Subject: [PATCH 4/6] #chud --- .github/workflows/pr-firebase-deploy.yml | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/.github/workflows/pr-firebase-deploy.yml b/.github/workflows/pr-firebase-deploy.yml index 844fcbd..13b04d0 100644 --- a/.github/workflows/pr-firebase-deploy.yml +++ b/.github/workflows/pr-firebase-deploy.yml @@ -32,10 +32,8 @@ jobs: - name: Install dependencies run: pnpm install - - name: Build & Export - run: | - pnpm build - pnpm export + - name: Build + run: pnpm build - name: Deploy to Firebase Hosting uses: FirebaseExtended/action-hosting-deploy@v0 From 576a4703aaf4578e0f0ef8987fdd050d78ed44af Mon Sep 17 00:00:00 2001 From: Aamogh <120258212+aamoghS@users.noreply.github.com> Date: Tue, 16 Dec 2025 15:22:00 -0500 Subject: [PATCH 5/6] i might be on sumn --- .github/workflows/{pr-firebase-deploy.yml => firebasedeploy.yml} | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename .github/workflows/{pr-firebase-deploy.yml => firebasedeploy.yml} (100%) diff --git a/.github/workflows/pr-firebase-deploy.yml b/.github/workflows/firebasedeploy.yml similarity index 100% rename from .github/workflows/pr-firebase-deploy.yml rename to .github/workflows/firebasedeploy.yml From 861d6f91e6669f6d2951f6f97727ba0cf38321bb Mon Sep 17 00:00:00 2001 From: Aamogh <120258212+aamoghS@users.noreply.github.com> Date: Tue, 16 Dec 2025 15:32:45 -0500 Subject: [PATCH 6/6] Update firebasedeploy.yml --- .github/workflows/firebasedeploy.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/firebasedeploy.yml b/.github/workflows/firebasedeploy.yml index 13b04d0..788605b 100644 --- a/.github/workflows/firebasedeploy.yml +++ b/.github/workflows/firebasedeploy.yml @@ -42,3 +42,4 @@ jobs: firebaseServiceAccount: ${{ secrets.FIREBASE_SERVICE_ACCOUNT_DSGT }} projectId: dsgt-website channelId: ${{ github.event_name == 'pull_request' && format('pr-{0}', github.event.pull_request.number) || 'live' }} + entryPoint: sites/mainweb