1- name : Publish
1+ name : Publish
22
33on :
44 workflow_dispatch :
@@ -21,10 +21,10 @@ jobs:
2121 -p:PublishSingleFile=true -p:PublishTrimmed=true --self-contained
2222 -o publish/win-x64
2323
24- - name : Upload win artifact
24+ - name : Upload
2525 uses : actions/upload-artifact@v4
2626 with :
27- name : GeneralUpdate.Tools- win-x64
27+ name : win-x64
2828 path : publish/win-x64/GeneralUpdate.Tools.exe
2929
3030 build-linux :
@@ -44,10 +44,10 @@ jobs:
4444 -p:PublishSingleFile=true -p:PublishTrimmed=true --self-contained
4545 -o publish/linux-x64
4646
47- - name : Upload linux artifact
47+ - name : Upload
4848 uses : actions/upload-artifact@v4
4949 with :
50- name : GeneralUpdate.Tools- linux-x64
50+ name : linux-x64
5151 path : publish/linux-x64/GeneralUpdate.Tools
5252
5353 release :
@@ -58,21 +58,28 @@ jobs:
5858 steps :
5959 - uses : actions/download-artifact@v4
6060
61+ - name : Show structure (debug)
62+ run : find . -type f
63+
6164 - name : Get timestamp
6265 id : ts
6366 run : echo "timestamp=$(date -u '+%Y%m%d%H%M%S')" >> $GITHUB_OUTPUT
6467
65- - name : Package zips
68+ - name : Build
69+ working-directory : win-x64
70+ run : zip ../GeneralUpdate.Tools_${{ steps.ts.outputs.timestamp }}_win-x64.zip *
71+
72+ - name : Build
73+ working-directory : linux-x64
6674 run : |
67- chmod +x GeneralUpdate.Tools-linux-x64/GeneralUpdate.Tools
68- cd GeneralUpdate.Tools-win-x64 && zip ../../GeneralUpdate.Tools_${{ steps.ts.outputs.timestamp }}_win-x64.zip GeneralUpdate.Tools.exe && cd ..
69- cd GeneralUpdate.Tools-linux-x64 && zip ../../GeneralUpdate.Tools_${{ steps.ts.outputs.timestamp }}_linux-x64.zip GeneralUpdate.Tools && cd ..
75+ chmod +x *
76+ zip ../GeneralUpdate.Tools_${{ steps.ts.outputs.timestamp }}_linux-x64.zip *
7077
7178 - name : Create Release
7279 uses : softprops/action-gh-release@v2
7380 with :
7481 tag_name : v${{ steps.ts.outputs.timestamp }}
75- name : Release ${{ steps.ts.outputs.timestamp }}
82+ name : GeneralUpdate.Tools ${{ steps.ts.outputs.timestamp }}
7683 files : |
7784 GeneralUpdate.Tools_${{ steps.ts.outputs.timestamp }}_win-x64.zip
7885 GeneralUpdate.Tools_${{ steps.ts.outputs.timestamp }}_linux-x64.zip
0 commit comments