From b25b9446000857b2682a3ac780f9aec9459a30a5 Mon Sep 17 00:00:00 2001 From: Dayuan Jiang <34411969+DayuanJiang@users.noreply.github.com> Date: Mon, 22 Dec 2025 11:36:38 +0900 Subject: [PATCH] fix(ci): simplify electron release - let electron-builder publish directly (#349) --- .github/workflows/electron-release.yml | 58 +------------------------- 1 file changed, 1 insertion(+), 57 deletions(-) diff --git a/.github/workflows/electron-release.yml b/.github/workflows/electron-release.yml index 5c1717d..f652b5a 100644 --- a/.github/workflows/electron-release.yml +++ b/.github/workflows/electron-release.yml @@ -40,63 +40,7 @@ jobs: - name: Install dependencies run: npm ci - - name: Build Electron app + - name: Build and publish Electron app run: npm run dist:${{ matrix.platform }} env: GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} - - - name: Upload macOS artifacts - if: matrix.platform == 'mac' - uses: actions/upload-artifact@v4 - with: - name: mac-build - path: | - release/*.dmg - release/*.zip - if-no-files-found: error - - - name: Upload Windows artifacts - if: matrix.platform == 'win' - uses: actions/upload-artifact@v4 - with: - name: win-build - path: | - release/*.exe - if-no-files-found: error - - - name: Upload Linux artifacts - if: matrix.platform == 'linux' - uses: actions/upload-artifact@v4 - with: - name: linux-build - path: | - release/*.AppImage - release/*.deb - if-no-files-found: error - - release: - needs: build - runs-on: ubuntu-latest - permissions: - contents: write - if: startsWith(github.ref, 'refs/tags/') - - steps: - - name: Download all artifacts - uses: actions/download-artifact@v4 - with: - path: artifacts - - - name: Create Release - uses: softprops/action-gh-release@v1 - with: - files: | - artifacts/**/*.dmg - artifacts/**/*.zip - artifacts/**/*.exe - artifacts/**/*.AppImage - artifacts/**/*.deb - draft: true - generate_release_notes: true - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}