From d48c18433fc8715d96a3d15fd4d8d4fd6fb4fff1 Mon Sep 17 00:00:00 2001 From: plyshka Date: Wed, 3 Jan 2024 17:51:46 +0500 Subject: [PATCH] Store zip with proper path and name --- .github/workflows/dotnet-release.yml | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/.github/workflows/dotnet-release.yml b/.github/workflows/dotnet-release.yml index c1819df..f80aff1 100644 --- a/.github/workflows/dotnet-release.yml +++ b/.github/workflows/dotnet-release.yml @@ -23,9 +23,15 @@ jobs: - name: Publish for windows run: dotnet publish -r win-x64 -c Release - name: Pack linux build - run: zip -r ADBForwarder-linux-x64.zip ADBForwarder/bin/Release/net8.0/linux-x64/ + run: cd ADBForwarder/bin/Release/net8.0/linux-x64/ && + mv publish adbforwarder && + zip -r ADBForwarder-linux-x64.zip adbforwarder && + cd - - name: Pack windows build - run: zip -r ADBForwarder-windows-x64.zip ADBForwarder/bin/Release/net8.0/win-x64/ + run: cd ADBForwarder/bin/Release/net8.0/win-x64/ && + mv publish adbforwarder && + zip -r ADBForwarder-windows-x64.zip adbforwarder && + cd - && - name: Release uses: softprops/action-gh-release@v1 if: startsWith(github.ref, 'refs/tags/')