File tree Expand file tree Collapse file tree 1 file changed +14
-3
lines changed Expand file tree Collapse file tree 1 file changed +14
-3
lines changed Original file line number Diff line number Diff line change @@ -47,10 +47,21 @@ jobs:
47
47
--source https://api.nuget.org/v3/index.json
48
48
}
49
49
50
- - name : Publish CLI archives
51
- if : matrix.arch == 'x64 '
50
+ - name : Publish CLI archives (Windows)
51
+ if : matrix.os == 'windows-latest '
52
52
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
54
65
55
66
cd publish
56
67
zip -r ../RSML.CLI-${{ matrix.os }}.zip .
You can’t perform that action at this time.
0 commit comments