From bfd1660643fe0766e8953e70d8508752253066b5 Mon Sep 17 00:00:00 2001 From: Federico Yankelevich Date: Sat, 18 Oct 2025 16:52:01 +0200 Subject: [PATCH 1/3] fixed github actions config --- .github/workflows/firebase-hosting-merge.yml | 2 +- .github/workflows/firebase-hosting-pull-request.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/firebase-hosting-merge.yml b/.github/workflows/firebase-hosting-merge.yml index af0d083..a800de3 100644 --- a/.github/workflows/firebase-hosting-merge.yml +++ b/.github/workflows/firebase-hosting-merge.yml @@ -11,7 +11,7 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - - run: npm ci && npm run build + - run: cd auroranet && npm ci && npm run build - uses: FirebaseExtended/action-hosting-deploy@v0 with: repoToken: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/firebase-hosting-pull-request.yml b/.github/workflows/firebase-hosting-pull-request.yml index 9469cb4..01e3caa 100644 --- a/.github/workflows/firebase-hosting-pull-request.yml +++ b/.github/workflows/firebase-hosting-pull-request.yml @@ -13,7 +13,7 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - - run: npm ci && npm run build + - run: cd auroranet && npm ci && npm run build - uses: FirebaseExtended/action-hosting-deploy@v0 with: repoToken: ${{ secrets.GITHUB_TOKEN }} From ddf87c56391d1016868fbe590f57be6dec84e56a Mon Sep 17 00:00:00 2001 From: Federico Yankelevich Date: Sat, 18 Oct 2025 17:03:18 +0200 Subject: [PATCH 2/3] add build for eacch commit --- .github/workflows/build.yml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 .github/workflows/build.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..0f43e21 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,27 @@ +name: Build after every commit + +on: + push: + branches: + - '**' # Trigger on all branches + +jobs: + build-only: + runs-on: ubuntu-latest + + steps: + - name: Checkout code + uses: actions/checkout@v4 + + - name: Setup Node.js + uses: actions/setup-node@v4 + with: + node-version: '20' + cache: 'npm' + cache-dependency-path: auroranet/package-lock.json + + - name: Install dependencies + run: cd auroranet && npm ci + + - name: Build project + run: cd auroranet && npm run build From 601b30b7ea42077e0504041cf5c44fcb43aa1ad0 Mon Sep 17 00:00:00 2001 From: Federico Yankelevich Date: Sat, 18 Oct 2025 17:08:52 +0200 Subject: [PATCH 3/3] add subsdirectory info --- .github/workflows/firebase-hosting-merge.yml | 1 + .github/workflows/firebase-hosting-pull-request.yml | 2 ++ 2 files changed, 3 insertions(+) diff --git a/.github/workflows/firebase-hosting-merge.yml b/.github/workflows/firebase-hosting-merge.yml index a800de3..b076e58 100644 --- a/.github/workflows/firebase-hosting-merge.yml +++ b/.github/workflows/firebase-hosting-merge.yml @@ -18,3 +18,4 @@ jobs: firebaseServiceAccount: ${{ secrets.FIREBASE_SERVICE_ACCOUNT_AURORANET_C0240 }} channelId: live projectId: auroranet-c0240 + entryPoint: ./auroranet diff --git a/.github/workflows/firebase-hosting-pull-request.yml b/.github/workflows/firebase-hosting-pull-request.yml index 01e3caa..aa0ac60 100644 --- a/.github/workflows/firebase-hosting-pull-request.yml +++ b/.github/workflows/firebase-hosting-pull-request.yml @@ -19,3 +19,5 @@ jobs: repoToken: ${{ secrets.GITHUB_TOKEN }} firebaseServiceAccount: ${{ secrets.FIREBASE_SERVICE_ACCOUNT_AURORANET_C0240 }} projectId: auroranet-c0240 + entryPoint: ./auroranet +