@@ -51,23 +51,41 @@ jobs:
5151 - name : Publish CLI archives (Windows)
5252 if : matrix.os == 'windows-latest'
5353 run : |
54- dotnet publish ./RSML.CLI/RSML.CLI.csproj -c Release -r win-x64 --self-contained true -o publish
54+ dotnet publish ./RSML.CLI/RSML.CLI.csproj -c Release -r win-${{ matrix.arch }} --self-contained true -o publish
5555
5656 cd publish
57- Compress-Archive -Path * -DestinationPath ../RSML.CLI-windows-latest.zip
58- tar -czf ../RSML.CLI-windows-latest.tar.gz *
57+ Compress-Archive -Path * -DestinationPath ../RSML.CLI-windows-latest-${{ matrix.arch }} .zip
58+ tar -czf ../RSML.CLI-windows-latest-${{ matrix.arch }} .tar.gz *
5959 cd ..
6060 shell : pwsh
6161
6262 - name : Publish CLI archives (Linux and MacOS)
63- if : matrix.arch == 'x64' && matrix. os != 'windows-latest'
63+ if : matrix.os != 'windows-latest'
6464 run : |
6565 dotnet publish ./RSML.CLI/RSML.CLI.csproj -c Release -r ${{ matrix.os == 'ubuntu-latest' && 'linux-x64' || 'osx-x64' }} --self-contained true -o publish
6666
6767 cd publish
68- zip -r ../RSML.CLI-${{ matrix.os }}.zip .
69- tar -czf ../RSML.CLI-${{ matrix.os }}.tar.gz .
68+ zip -r ../RSML.CLI-${{ matrix.os }}-${{ matrix.arch }} .zip .
69+ tar -czf ../RSML.CLI-${{ matrix.os }}-${{ matrix.arch }} .tar.gz .
7070 cd ..
71+
72+ - name : Upload CLI artifacts (Windows)
73+ if : matrix.os == 'windows-latest'
74+ uses : actions/upload-artifact@v4
75+ with :
76+ name : cli-windows-${{ matrix.arch }}
77+ path : |
78+ RSML.CLI-windows-latest-${{ matrix.arch }}.zip
79+ RSML.CLI-windows-latest-${{ matrix.arch }}.tar.gz
80+
81+ - name : Upload CLI artifacts (Linux/macOS)
82+ if : matrix.os != 'windows-latest'
83+ uses : actions/upload-artifact@v4
84+ with :
85+ name : cli-${{ matrix.os }}-${{ matrix.arch }}
86+ path : |
87+ RSML.CLI-${{ matrix.os }}-${{ matrix.arch }}.zip
88+ RSML.CLI-${{ matrix.os }}-${{ matrix.arch }}.tar.gz
7189
7290 - uses : actions/checkout@v4
7391
0 commit comments