Skip to content

Commit 7b7a052

Browse files
authoredAug 12, 2024··
update automatic assest naming with tag (#32)
1 parent 25927f6 commit 7b7a052

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed
 

‎.github/workflows/dotnet-desktop.yml

+5-5
Original file line numberDiff line numberDiff line change
@@ -28,19 +28,19 @@ jobs:
2828
- name: Publish the application
2929
run: dotnet publish D:\a\ATA-GUI\ATA-GUI\ATA-GUI\ATA-GUI.csproj --configuration Release --runtime win-x64 --self-contained false /p:PublishSingleFile=true --output ./publish
3030

31-
- name: Zip the published output
32-
run: Compress-Archive -Path ./publish/ATA-GUI.exe, ./LICENSE -DestinationPath ATA-GUI.zip
33-
shell: pwsh
34-
3531
- name: Get Previous tag
3632
id: previoustag
3733
uses: "WyriHaximus/github-action-get-previous-tag@v1.4.0"
3834

35+
- name: Zip the published output
36+
run: Compress-Archive -Path ./publish/ATA-GUI.exe, ./LICENSE -DestinationPath ATA-GUI_${{ steps.previoustag.outputs.tag }}.zip
37+
shell: pwsh
38+
3939
- name: Create Release
4040
uses: ncipollo/release-action@v1.14.0
4141
with:
4242
generateReleaseNotes: true
43-
artifacts: ATA-GUI.zip
43+
artifacts: ATA-GUI_${{ steps.previoustag.outputs.tag }}.zip
4444
name: ${{ steps.previoustag.outputs.tag }}
4545
tag: ${{ steps.previoustag.outputs.tag }}
4646
token: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)
Please sign in to comment.