From 87ff672bf53922a9ad82f69c260254527274bab2 Mon Sep 17 00:00:00 2001 From: Ioannis Karasavvaidis Date: Sat, 14 Sep 2024 17:02:49 +0100 Subject: [PATCH] fix(workflow): update release action and artifact paths - Replaced `actions/create-release` with `ncipollo/release-action`. - Consolidated artifact uploads into a single step using wildcard paths. - Enabled automatic release notes generation and set release as latest. --- .github/workflows/release.yml | 39 +++++------------------------------ 1 file changed, 5 insertions(+), 34 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 5deb742..2f10b42 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -57,38 +57,9 @@ jobs: path: ./binaries/file-watcher-windows-amd64.zip - name: Create GitHub Release id: create_release - uses: actions/create-release@v1 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + uses: ncipollo/release-action@v1 with: - tag_name: ${{ github.ref }} - release_name: Release ${{ github.ref }} - draft: false - prerelease: false - - name: Upload Release Asset (Linux) - uses: actions/upload-release-asset@v1 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - with: - upload_url: ${{ steps.create_release.outputs.upload_url }} - asset_path: ./binaries/file-watcher-ubuntu-amd64.zip - asset_name: file-watcher-linux-amd64.zip - asset_content_type: application/octet-stream - - name: Upload Release Asset (macOS) - uses: actions/upload-release-asset@v1 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - with: - upload_url: ${{ steps.create_release.outputs.upload_url }} - asset_path: ./binaries/file-watcher-macos-amd64.zip - asset_name: file-watcher-macos-amd64.zip - asset_content_type: application/octet-stream - - name: Upload Release Asset (Windows) - uses: actions/upload-release-asset@v1 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - with: - upload_url: ${{ steps.create_release.outputs.upload_url }} - asset_path: ./binaries/file-watcher-windows-amd64.zip - asset_name: file-watcher-windows-amd64.zip - asset_content_type: application/octet-stream + artifacts: ./binaries/*.zip + generateReleaseNotes: true + makeLatest: true + name: Release ${{ github.ref }}