Skip to content

Commit

Permalink
fix(workflow): update release action and artifact paths
Browse files Browse the repository at this point in the history
- 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.
  • Loading branch information
CoMfUcIoS committed Sep 14, 2024
1 parent 48d1a2f commit 87ff672
Showing 1 changed file with 5 additions and 34 deletions.
39 changes: 5 additions & 34 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}

0 comments on commit 87ff672

Please sign in to comment.