Skip to content

Commit

Permalink
Update build.yml - Release artefacts should be zipped and versioned
Browse files Browse the repository at this point in the history
  • Loading branch information
peterdey authored Dec 21, 2024
1 parent 77c4c07 commit 3c2ce80
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,14 +41,19 @@ jobs:
MQTTNotifier/bin/Release/MQTTNotifier.exe
MQTTNotifier/bin/Release/MQTTNotifier.exe.config
- name: Download artifacts
uses: actions/download-artifact@v4
- name: Zip artefacts for release
uses: vimtor/[email protected]
with:
path: ./binaries

recursive: false
dest: MQTTNotifier-${{github.ref_name}}.zip
files: |
MQTTNotifier/bin/Release/M2Mqtt.Net.dll
MQTTNotifier/bin/Release/MQTTNotifier.exe
MQTTNotifier/bin/Release/MQTTNotifier.exe.config
- name: Upload binaries to release
uses: softprops/action-gh-release@v2
if: startsWith(github.ref, 'refs/tags/v')
with:
files: |
./binaries/MQTTNotifier/*
MQTTNotifier-${{github.ref_name}}.zip

0 comments on commit 3c2ce80

Please sign in to comment.