From 1e3f6c3f836d4eaadd5189e2617922bfb8ce7f66 Mon Sep 17 00:00:00 2001 From: Azrol Ali Date: Tue, 14 Jul 2026 22:53:31 +0800 Subject: [PATCH 1/9] Add first GitHub Actions workflow --- .github/workflows/deploy.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 .github/workflows/deploy.yml diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml new file mode 100644 index 0000000..8d00100 --- /dev/null +++ b/.github/workflows/deploy.yml @@ -0,0 +1,11 @@ +name: deploy + +on: [push] + +jobs: + say-hello: + runs-on: ubuntu-latest + + steps: + - run: sleep 60 + - run: echo "Ship it!" \ No newline at end of file From a2dd0423224a415a822f6047c812f370d9363ffd Mon Sep 17 00:00:00 2001 From: Azrol Ali Date: Tue, 14 Jul 2026 23:08:46 +0800 Subject: [PATCH 2/9] Enable manual workflow --- .github/workflows/deploy.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 8d00100..1d00af3 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -1,6 +1,6 @@ name: deploy -on: [push] +on: [push, workflow_dispatch] jobs: say-hello: From c82c1bdd8dcdbdb9e7cb4c3091884925a3d998ca Mon Sep 17 00:00:00 2001 From: Azrol Ali Date: Tue, 14 Jul 2026 23:29:47 +0800 Subject: [PATCH 3/9] Deploy to GitHub Pages --- .github/workflows/deploy.yml | 44 ++++++++++++++++++++++++++++++++---- 1 file changed, 40 insertions(+), 4 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 1d00af3..707b7ad 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -1,11 +1,47 @@ name: deploy -on: [push, workflow_dispatch] +on: + push: + workflow_dispatch: + +permissions: + contents: read + pages: write + id-token: write + +concurrency: + group: pages + cancel-in-progress: true jobs: - say-hello: + deploy: runs-on: ubuntu-latest + defaults: + run: + working-directory: launchpad + steps: - - run: sleep 60 - - run: echo "Ship it!" \ No newline at end of file + - name: Checkout repository + uses: actions/checkout@v4 + + - name: Setup Node.js + uses: actions/setup-node@v4 + with: + node-version: 22 + cache: npm + cache-dependency-path: launchpad/package-lock.json + + - name: Install dependencies + run: npm ci + + - name: Build website + run: npm run build + + - name: Upload Pages artifact + uses: actions/upload-pages-artifact@v3 + with: + path: launchpad/dist + + - name: Deploy to GitHub Pages + uses: actions/deploy-pages@v4 \ No newline at end of file From 0d004f52deda2f4387e0d927890be7d77175b7fb Mon Sep 17 00:00:00 2001 From: Azrol Ali Date: Thu, 16 Jul 2026 21:54:17 +0800 Subject: [PATCH 4/9] Add pre-flight test --- .github/workflows/deploy.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 707b7ad..fc306bc 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -14,7 +14,7 @@ concurrency: cancel-in-progress: true jobs: - deploy: + test: runs-on: ubuntu-latest defaults: @@ -37,6 +37,10 @@ jobs: - name: Build website run: npm run build + + - name: Run tests + run: npm run test + - name: Upload Pages artifact uses: actions/upload-pages-artifact@v3 From 7bf7fc57102b433fab8160cee4df0d8175389049 Mon Sep 17 00:00:00 2001 From: Azrol Ali Date: Thu, 16 Jul 2026 22:06:47 +0800 Subject: [PATCH 5/9] empty name --- launchpad/ship.config.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/launchpad/ship.config.json b/launchpad/ship.config.json index 0221b94..ecf7a67 100644 --- a/launchpad/ship.config.json +++ b/launchpad/ship.config.json @@ -1,5 +1,5 @@ { - "shipName": "Nebula Runner", + "shipName": "", "color": "22d3ee", "shipModel": "fighter", "emblem": "comet" From dc1572c44ef363ee70c71f72f8451cb25a99ca9e Mon Sep 17 00:00:00 2001 From: Azrol Ali Date: Thu, 16 Jul 2026 22:21:01 +0800 Subject: [PATCH 6/9] baiki nama ship --- launchpad/ship.config.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/launchpad/ship.config.json b/launchpad/ship.config.json index ecf7a67..34b4809 100644 --- a/launchpad/ship.config.json +++ b/launchpad/ship.config.json @@ -1,6 +1,6 @@ { - "shipName": "", - "color": "22d3ee", + "shipName": "Nebula Runner", + "color": "#22d3ee", "shipModel": "fighter", "emblem": "comet" } From 09f03dc81fad51c2c9aac622cd2e9cbac92716cf Mon Sep 17 00:00:00 2001 From: Azrol Ali Date: Tue, 21 Jul 2026 21:42:27 +0800 Subject: [PATCH 7/9] report dashboard --- .github/workflows/deploy.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index fc306bc..5126d05 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -40,6 +40,11 @@ jobs: - name: Run tests run: npm run test + + - run: bash scripts/report.sh + env: + BOARD_URL: ${{ vars.BOARD_URL }} + SHIPIT_TOKEN: ${{ secrets.SHIPIT_TOKEN }} - name: Upload Pages artifact From 90e031c4536785ea1ca0c100311a138c79344b6d Mon Sep 17 00:00:00 2001 From: Azrol Ali Date: Tue, 21 Jul 2026 23:33:06 +0800 Subject: [PATCH 8/9] split jobs --- .github/workflows/deploy.yml | 40 ++++++++++++++++++++++++++++++++---- 1 file changed, 36 insertions(+), 4 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 5126d05..4b93eec 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -1,8 +1,12 @@ name: deploy on: - push: - workflow_dispatch: + pull_request: + types: + - opened + - synchronize + - reopened + - closed permissions: contents: read @@ -15,6 +19,7 @@ concurrency: jobs: test: + if: github.event.pull_request.merged == false runs-on: ubuntu-latest defaults: @@ -37,7 +42,7 @@ jobs: - name: Build website run: npm run build - + - name: Run tests run: npm run test @@ -45,7 +50,34 @@ jobs: env: BOARD_URL: ${{ vars.BOARD_URL }} SHIPIT_TOKEN: ${{ secrets.SHIPIT_TOKEN }} - + + deploy: + needs: test + if: always() && github.event.pull_request.merged == true + runs-on: ubuntu-latest + + defaults: + run: + working-directory: launchpad + + steps: + - name: Checkout repository + uses: actions/checkout@v4 + + - name: Setup Node.js + uses: actions/setup-node@v4 + with: + node-version: 22 + cache: npm + cache-dependency-path: launchpad/package-lock.json + + - name: Install dependencies + run: npm ci + + - name: Build website + run: npm run build + env: + VITE_BOARD_URL: ${{ vars.BOARD_URL }} - name: Upload Pages artifact uses: actions/upload-pages-artifact@v3 From 30625b589a0b801b8372131bb70f4b4ac8e26a45 Mon Sep 17 00:00:00 2001 From: Azrol Ali Date: Wed, 22 Jul 2026 00:23:00 +0800 Subject: [PATCH 9/9] enable manual workflow --- .github/workflows/deploy.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 4b93eec..124d30e 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -1,6 +1,8 @@ name: deploy on: + workflow_dispatch: + pull_request: types: - opened