Skip to content

Commit 77b85c8

Browse files
committed
fix release pipeline
1 parent 4f1a44e commit 77b85c8

File tree

1 file changed

+20
-51
lines changed

1 file changed

+20
-51
lines changed

.github/workflows/release.yml

Lines changed: 20 additions & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -174,70 +174,39 @@ jobs:
174174
token: ${{ secrets.GITHUB_TOKEN }}
175175
tag: ${{ github.ref_name }}
176176

177-
- name: Create Release
178-
id: create_release
179-
uses: actions/create-release@v1
180-
env:
181-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
182-
with:
183-
tag_name: ${{ github.ref_name }}
184-
release_name: Release ${{ github.ref_name }}
185-
body: ${{ steps.changelog.outputs.changes }}
186-
draft: false
187-
prerelease: true
188-
177+
# download all build artifacts
189178
- uses: actions/download-artifact@v4
190179
with:
191180
name: linux-build
192-
- name: Upload Linux Asset
193-
uses: actions/upload-release-asset@v1
194-
env:
195-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
196-
with:
197-
upload_url: ${{ steps.create_release.outputs.upload_url }}
198-
asset_path: soundscape-sync
199-
asset_name: soundscape-sync-linux-x86
200-
asset_content_type: application/octet-stream
201-
181+
path: dist/linux
202182
- uses: actions/download-artifact@v4
203183
with:
204184
name: windows-build
205-
- name: Upload Windows Asset
206-
uses: actions/upload-release-asset@v1
207-
env:
208-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
209-
with:
210-
upload_url: ${{ steps.create_release.outputs.upload_url }}
211-
asset_path: SoundscapeSync.exe
212-
asset_name: SoundscapeSync.exe
213-
asset_content_type: application/x-msdownload
214-
185+
path: dist/windows
215186
- uses: actions/download-artifact@v4
216187
with:
217188
name: macos-build
218-
- name: Upload MacOS Asset
219-
uses: actions/upload-release-asset@v1
220-
env:
221-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
222-
with:
223-
upload_url: ${{ steps.create_release.outputs.upload_url }}
224-
asset_path: SoundscapeSync.app.zip
225-
asset_name: MacOS.zip
226-
asset_content_type: application/zip
189+
path: dist/macos
227190

228191
- name: Generate checksum
229192
uses: jmgilman/actions-generate-checksum@v1
230193
with:
231194
patterns: |
232-
SoundscapeSync.exe
233-
SoundscapeSync.app.zip
195+
dist/windows/SoundscapeSync.exe
196+
dist/macos/SoundscapeSync.app.zip
197+
- run: mv checksum.txt dist/checksum.txt
234198

235-
- name: Upload checksum
236-
uses: actions/upload-release-asset@v1
237-
env:
238-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
199+
- name: Create GitHub Release & upload assets
200+
uses: softprops/action-gh-release@v2
239201
with:
240-
upload_url: ${{ steps.create_release.outputs.upload_url }}
241-
asset_path: checksum.txt
242-
asset_name: checksum.txt
243-
asset_content_type: text/plain
202+
token: ${{ github.token }}
203+
tag_name: ${{ github.ref_name }}
204+
name: Release ${{ github.ref_name }}
205+
body: ${{ steps.changelog.outputs.changes }}
206+
draft: false
207+
prerelease: true
208+
files: |
209+
dist/linux/**/*
210+
dist/windows/SoundscapeSync.exe
211+
dist/macos/SoundscapeSync.app.zip
212+
dist/checksum.txt

0 commit comments

Comments
 (0)