Skip to content

Commit c65de4d

Browse files
committed
we fr tho
1 parent 0d61cd9 commit c65de4d

File tree

1 file changed

+14
-3
lines changed

1 file changed

+14
-3
lines changed

.github/workflows/dotnet_build_release.yml

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff 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 .

0 commit comments

Comments
 (0)