diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 29dc8b5..06a9df5 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -9,7 +9,7 @@ permissions: contents: write jobs: - build: + release: runs-on: ${{ matrix.os }} strategy: @@ -28,44 +28,7 @@ jobs: - name: Install dependencies run: npm install - - name: Build application - run: npm run build && electron-builder --publish never - - - name: Upload artifacts (macOS) - if: matrix.os == 'macos-latest' - uses: actions/upload-artifact@v4 - with: - name: macos-build - path: | - dist/*.dmg - dist/*.zip - - - name: Upload artifacts (Linux) - if: matrix.os == 'ubuntu-latest' - uses: actions/upload-artifact@v4 - with: - name: linux-build - path: | - dist/*.AppImage - dist/*.deb - - release: - needs: build - runs-on: ubuntu-latest - steps: - - name: Download all artifacts - uses: actions/download-artifact@v4 - with: - path: artifacts - - - name: Display structure of downloaded files - run: ls -R artifacts - - - name: Create Release - uses: softprops/action-gh-release@v2 - with: - files: | - artifacts/macos-build/* - artifacts/linux-build/* + - name: Build and publish + run: npm run dist env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}