diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 6240ba9..f689655 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -9,64 +9,56 @@ on: workflow_dispatch: jobs: - build: - strategy: - matrix: - include: - - os: ubuntu-latest - platform: linux - - os: windows-latest - platform: win - - os: macos-latest - platform: mac - - runs-on: ${{ matrix.os }} - + build-linux: + runs-on: ubuntu-latest steps: - - name: Checkout code - uses: actions/checkout@v4 - - - name: Setup Node.js - uses: actions/setup-node@v4 + - uses: actions/checkout@v4 + - uses: actions/setup-node@v4 with: - node-version: '20' + node-version: '22' cache: 'npm' - - - name: Install dependencies - run: npm ci - - - name: Build for Linux - if: matrix.platform == 'linux' - run: npm run build:linux - - - name: Build for Windows - if: matrix.platform == 'win' - run: npm run build:win - - - name: Build for macOS (Universal) - if: matrix.platform == 'mac' - run: npm run build:mac - - - name: Upload Linux artifacts - if: matrix.platform == 'linux' - uses: actions/upload-artifact@v4 + - run: npm ci + - run: npm run build:linux + env: + GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} + - uses: actions/upload-artifact@v4 with: name: linux-builds path: | dist/*.AppImage dist/*.deb - - name: Upload Windows artifacts - if: matrix.platform == 'win' - uses: actions/upload-artifact@v4 + build-windows: + runs-on: windows-latest + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-node@v4 + with: + node-version: '22' + cache: 'npm' + - run: npm ci + - run: npm run build:win + env: + GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} + - uses: actions/upload-artifact@v4 with: name: windows-builds path: | dist/*.exe - - name: Upload macOS artifacts - if: matrix.platform == 'mac' - uses: actions/upload-artifact@v4 + build-macos: + runs-on: macos-latest + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-node@v4 + with: + node-version: '22' + cache: 'npm' + - run: npm ci + - run: npm run build:mac + env: + GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} + - uses: actions/upload-artifact@v4 with: name: macos-builds path: | @@ -75,7 +67,7 @@ jobs: dist/latest-mac.yml release: - needs: build + needs: [build-linux, build-windows, build-macos] runs-on: ubuntu-latest if: startsWith(github.ref, 'refs/tags/v')