File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -47,10 +47,21 @@ jobs:
4747 --source https://api.nuget.org/v3/index.json
4848 }
4949
50- - name : Publish CLI archives
51- if : matrix.arch == 'x64 '
50+ - name : Publish CLI archives (Windows)
51+ if : matrix.os == 'windows-latest '
5252 run : |
53- dotnet publish ./RSML.CLI/RSML.CLI.csproj -c Release -r ${{ matrix.os == 'windows-latest' && 'win-x64' || matrix.os == 'ubuntu-latest' && 'linux-x64' || 'osx-x64' }} --self-contained true -o publish
53+ dotnet publish ./RSML.CLI/RSML.CLI.csproj -c Release -r win-x64 --self-contained true -o publish
54+
55+ cd publish
56+ Compress-Archive -Path * -DestinationPath ../RSML.CLI-windows-latest.zip
57+ tar -czf ../RSML.CLI-windows-latest.tar.gz *
58+ cd ..
59+ shell : pwsh
60+
61+ - name : Publish CLI archives (Linux and MacOS)
62+ if : matrix.arch == 'x64' && matrix.os != 'windows-latest'
63+ run : |
64+ dotnet publish ./RSML.CLI/RSML.CLI.csproj -c Release -r ${{ matrix.os == 'ubuntu-latest' && 'linux-x64' || 'osx-x64' }} --self-contained true -o publish
5465
5566 cd publish
5667 zip -r ../RSML.CLI-${{ matrix.os }}.zip .
You can’t perform that action at this time.
0 commit comments