From a1048b0e55fe36ca021149b432ffa3f874f03f06 Mon Sep 17 00:00:00 2001 From: James Twose Date: Sat, 14 Mar 2026 20:43:18 +0000 Subject: [PATCH] attempt 1 at redoing the release yaml --- .github/workflows/release.yml | 67 ++++++++++++++++++++++++++--------- 1 file changed, 50 insertions(+), 17 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 5eb39a9..0d8dcb0 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -9,33 +9,66 @@ permissions: contents: write jobs: - build-windows: - runs-on: windows-latest + build: + runs-on: ${{ matrix.os }} + strategy: + matrix: + include: + - os: windows-latest + command: npm run electron:build:win + artifact: release/*.exe + env: + CSC_IDENTITY_AUTO_DISCOVERY: false + WIN_CSC_LINK: '' + - os: macos-latest + command: npm run electron:build:mac -- --universal + artifact: release/*.dmg + env: + CSC_IDENTITY_AUTO_DISCOVERY: false + - os: ubuntu-latest + command: npm run electron:build:linux + artifact: release/*.AppImage + env: + CSC_IDENTITY_AUTO_DISCOVERY: false steps: - uses: actions/checkout@v4 - uses: actions/setup-node@v4 with: node-version: 20 - run: npm install - - run: npm run electron:build:win + - name: Build (Windows) + if: matrix.os == 'windows-latest' + run: ${{ matrix.command }} env: CSC_IDENTITY_AUTO_DISCOVERY: false WIN_CSC_LINK: '' - - uses: softprops/action-gh-release@v2 - with: - files: releases/*.exe - build-mac: - runs-on: macos-latest - steps: - - uses: actions/checkout@v4 - - uses: actions/setup-node@v4 - with: - node-version: 20 - - run: npm install - - run: npm run electron:build:mac + - name: Build (mac/linux) + if: matrix.os != 'windows-latest' + run: ${{ matrix.command }} env: CSC_IDENTITY_AUTO_DISCOVERY: false - - uses: softprops/action-gh-release@v2 + - name: Upload build artifacts + uses: actions/upload-artifact@v4 with: - files: releases/*.dmg + name: ${{ matrix.os }}-artifacts + path: ${{ matrix.artifact }} + if-no-files-found: ignore + + publish: + needs: build + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - name: Download all build artifacts + uses: actions/download-artifact@v4 + - name: Aggregate artifacts + run: | + mkdir -p release_all + find . -type f \( -name "*.dmg" -o -name "*.AppImage" -o -name "*.exe" -o -name "*.deb" \) -exec cp {} release_all/ \; + - name: List aggregated artifacts + run: ls -la release_all || true + - name: Create GitHub Release with all artifacts + uses: softprops/action-gh-release@v2 + with: + files: release_all/*