Skip to content

Commit 147c297

Browse files
committed
.NET Release Workflow (cross-platform compatibility)
(excluding MacOS)
1 parent 89b88b5 commit 147c297

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

.github/workflows/dotnet_release.yml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -50,10 +50,10 @@ jobs:
5050
run: |
5151
if [ $RUNNER_OS == 'Windows' ]; then
5252
cd ./publish
53-
powershell Compress-Archive -Path * -DestinationPath "../WriterSharp_${{ env.VERSION }}.zip"
53+
powershell Compress-Archive -Path * -DestinationPath "../WriterSharp_${{ env.VERSION }}_win64.zip"
5454
elif [ $RUNNER_OS == 'Linux' ]; then
5555
cd ./publish
56-
zip -r "../WriterSharp_${{ env.VERSION }}.zip" *
56+
zip -r "../WriterSharp_${{ env.VERSION }}_linux64.zip" *
5757
# MacOS down here
5858
#elif [ $RUNNER_OS == 'macOS' ]; then
5959
#cd ./publish
@@ -65,10 +65,10 @@ jobs:
6565
run: |
6666
if [ $RUNNER_OS == 'Windows' ]; then
6767
cd ./publish
68-
tar -czvf "../WriterSharp_${{ env.VERSION }}.tar.gz" *
68+
tar -czvf "../WriterSharp_${{ env.VERSION }}_win64.tar.gz" *
6969
elif [ $RUNNER_OS == 'Linux' ]; then
7070
cd ./publish
71-
tar -czvf "../WriterSharp_${{ env.VERSION }}.tar.gz" *
71+
tar -czvf "../WriterSharp_${{ env.VERSION }}_linux64.tar.gz" *
7272
# MacOS down here
7373
#elif [ $RUNNER_OS == 'macOS' ]; then
7474
#cd ./publish
@@ -80,7 +80,9 @@ jobs:
8080
uses: softprops/action-gh-release@v1
8181

8282
with:
83-
files: ./publish/**/*
83+
files: |
84+
./*.zip
85+
./*.tar.gz
8486
8587
env:
8688
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)