From 186dbbe67bf81cbe89b2fd51be45bb6a744d5d07 Mon Sep 17 00:00:00 2001 From: Airyzz <36567925+Airyzz@users.noreply.github.com> Date: Sat, 24 Jan 2026 11:38:08 +1030 Subject: [PATCH 1/3] Create build.yml --- .github/workflows/build.yml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 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..4090ac2 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,29 @@ + +name: build + +on: + pull_request: + merge_group: + +jobs: + build-windows: + runs-on: windows-2022 + steps: + - name: Checkout + uses: actions/checkout@v2 + with: + submodules: 'true' + + - uses: actions/setup-node@v6 + with: + node-version: 24 + + - name: Build UI + run: | + cd .\ui + npm i + npm run build + + - name: Build Installer + run: | + cargo build \ No newline at end of file From 1e06dbc9655cc375f6490ccab3f9be862e94d657 Mon Sep 17 00:00:00 2001 From: Airyzz <36567925+Airyzz@users.noreply.github.com> Date: Sat, 24 Jan 2026 11:42:36 +1030 Subject: [PATCH 2/3] Create release.yml --- .github/workflows/release.yml | 42 +++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 .github/workflows/release.yml diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..20a71f4 --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,42 @@ + +name: release + +on: + release: + types: + - created + workflow_dispatch: + +jobs: + build-windows: + runs-on: windows-2022 + steps: + - name: Checkout + uses: actions/checkout@v2 + with: + submodules: 'true' + + - uses: actions/setup-node@v6 + with: + node-version: 24 + + - name: Build UI + run: | + cd .\ui + npm i + npm run build + + - name: Build Installer + run: | + cargo build --release + + - name: Upload to release + if: github.event_name == 'release' + uses: actions/upload-release-asset@v1 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + upload_url: ${{ github.event.release.upload_url }} + asset_path: .\target\release\build\installer.exe + asset_name: commet-installer.exe + asset_content_type: application/vnd.microsoft.portable-executable From 024c348d83cbae21043cb4ce213a2b97f38c1f5b Mon Sep 17 00:00:00 2001 From: Airyzz <36567925+Airyzz@users.noreply.github.com> Date: Sat, 24 Jan 2026 11:45:51 +1030 Subject: [PATCH 3/3] Update release.yml --- .github/workflows/release.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 20a71f4..eb2020c 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -37,6 +37,6 @@ jobs: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: upload_url: ${{ github.event.release.upload_url }} - asset_path: .\target\release\build\installer.exe + asset_path: .\target\release\installer.exe asset_name: commet-installer.exe asset_content_type: application/vnd.microsoft.portable-executable