@@ -10,10 +10,11 @@ jobs:
1010 runs-on : ' ubuntu-latest'
1111
1212 steps :
13- - uses : actions/checkout@v4
13+ - name : Checkout
14+ uses : actions/checkout@v4
1415 with :
1516 path : ' main'
16-
17+
1718 - name : Setup .NET
1819 uses : actions/setup-dotnet@v4
1920 with :
@@ -32,62 +33,46 @@ jobs:
3233 run : |
3334 dotnet nuget add source -n ThermoPKG `pwd`/ThermoPKG/Libs/NetCore/Net8
3435
35- - name : Publish all
36+ - name : Publish all and zip artifacts
3637 run : |
3738 dotnet publish --configuration Release --runtime linux-x64 main/ThermoRawFileParser.csproj --sc -o publish/linux-x64
3839 dotnet publish --configuration Release --runtime win-x64 main/ThermoRawFileParser.csproj --sc -o publish/win-x64
3940 dotnet publish --configuration Release --runtime osx-x64 main/ThermoRawFileParser.csproj --sc -o publish/osx-x64
4041 dotnet publish --configuration Release --framework net8.0 main/ThermoRawFileParser.csproj -o publish/net8
41-
42- - name : Zipping Linux standalone
43- 44- with :
45- files : publish/linux-x64
46- dest : ThermoRawFileParser-${{ github.ref_name }}-linux.zip
42+ cd publish/linux-x64
43+ zip -r -q ThermoRawFileParser-${{ github.ref_name }}-linux.zip *
44+ cd ../win-x64
45+ zip -r -q ThermoRawFileParser-${{ github.ref_name }}-win.zip *
46+ cd ../osx-x64
47+ zip -r -q ThermoRawFileParser-${{ github.ref_name }}-osx.zip *
48+ cd ../net8
49+ zip -r -q ThermoRawFileParser-${{ github.ref_name }}-net8.zip *
4750
4851 - name : Upload Linux to release
4952 uses : svenstaro/upload-release-action@v2
5053 with :
5154 repo_token : ${{ secrets.GITHUB_TOKEN }}
52- file : ThermoRawFileParser-${{ github.ref_name }}-linux.zip
55+ file : publish/linux-x64/ ThermoRawFileParser-${{ github.ref_name }}-linux.zip
5356 tag : ${{ github.ref }}
5457
55- - name : Zipping OSX standalone
56- 57- with :
58- files : publish/osx-x64
59- dest : ThermoRawFileParser-${{ github.ref_name }}-osx.zip
60-
6158 - name : Upload OSX to release
6259 uses : svenstaro/upload-release-action@v2
6360 with :
6461 repo_token : ${{ secrets.GITHUB_TOKEN }}
65- file : ThermoRawFileParser-${{ github.ref_name }}-osx.zip
62+ file : publish/osx-x64/ ThermoRawFileParser-${{ github.ref_name }}-osx.zip
6663 tag : ${{ github.ref }}
6764
68- - name : Zipping Windows standalone
69- 70- with :
71- files : publish/win-x64
72- dest : ThermoRawFileParser-${{ github.ref_name }}-win.zip
73-
7465 - name : Upload Windows to release
7566 uses : svenstaro/upload-release-action@v2
7667 with :
7768 repo_token : ${{ secrets.GITHUB_TOKEN }}
78- file : ThermoRawFileParser-${{ github.ref_name }}-win.zip
69+ file : publish/win-x64/ ThermoRawFileParser-${{ github.ref_name }}-win.zip
7970 tag : ${{ github.ref }}
8071
81- - name : Zipping framework-based
82- 83- with :
84- files : publish/net8
85- dest : ThermoRawFileParser-${{ github.ref_name }}-net8.zip
86-
8772 - name : Upload framework-based to release
8873 uses : svenstaro/upload-release-action@v2
8974 with :
9075 repo_token : ${{ secrets.GITHUB_TOKEN }}
91- file : ThermoRawFileParser-${{ github.ref_name }}-net8.zip
76+ file : publish/net8/ ThermoRawFileParser-${{ github.ref_name }}-net8.zip
9277 tag : ${{ github.ref }}
9378
0 commit comments