Skip to content

Commit 6f0ab5d

Browse files
committed
.NET Release Workflow (cross-platform compatibility)
1 parent 147c297 commit 6f0ab5d

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.github/workflows/dotnet_release.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -48,10 +48,10 @@ jobs:
4848
# Step 8
4949
- name: Create ZIP archives
5050
run: |
51-
if [ $RUNNER_OS == 'Windows' ]; then
51+
if [[ $RUNNER_OS == 'Windows' ]]; then
5252
cd ./publish
5353
powershell Compress-Archive -Path * -DestinationPath "../WriterSharp_${{ env.VERSION }}_win64.zip"
54-
elif [ $RUNNER_OS == 'Linux' ]; then
54+
elif [[ $RUNNER_OS == 'Linux' ]]; then
5555
cd ./publish
5656
zip -r "../WriterSharp_${{ env.VERSION }}_linux64.zip" *
5757
# MacOS down here
@@ -63,10 +63,10 @@ jobs:
6363
# Step 9
6464
- name: Create TAR.GZ archives
6565
run: |
66-
if [ $RUNNER_OS == 'Windows' ]; then
66+
if [[ $RUNNER_OS == 'Windows' ]]; then
6767
cd ./publish
6868
tar -czvf "../WriterSharp_${{ env.VERSION }}_win64.tar.gz" *
69-
elif [ $RUNNER_OS == 'Linux' ]; then
69+
elif [[ $RUNNER_OS == 'Linux' ]]; then
7070
cd ./publish
7171
tar -czvf "../WriterSharp_${{ env.VERSION }}_linux64.tar.gz" *
7272
# MacOS down here

0 commit comments

Comments
 (0)