From 9b3eddb3702df60c8c3d8ee538614521d729bce3 Mon Sep 17 00:00:00 2001 From: plyshka Date: Wed, 3 Jan 2024 17:39:47 +0500 Subject: [PATCH] Rename pipelines Use manual zip and release --- .github/workflows/dotnet-debug.yml | 2 +- .github/workflows/dotnet-release.yml | 26 +++++++++++--------------- 2 files changed, 12 insertions(+), 16 deletions(-) diff --git a/.github/workflows/dotnet-debug.yml b/.github/workflows/dotnet-debug.yml index 8a0b0b9..9f8242b 100644 --- a/.github/workflows/dotnet-debug.yml +++ b/.github/workflows/dotnet-debug.yml @@ -1,7 +1,7 @@ # This workflow will build a .NET project # For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-net -name: .NET +name: ADBForwarder Debug on: push: diff --git a/.github/workflows/dotnet-release.yml b/.github/workflows/dotnet-release.yml index b2cdb78..6118fee 100644 --- a/.github/workflows/dotnet-release.yml +++ b/.github/workflows/dotnet-release.yml @@ -1,7 +1,7 @@ # This workflow will build a .NET project # For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-net -name: .NET +name: ADBForwarder Release on: push: @@ -11,8 +11,6 @@ jobs: build: runs-on: ubuntu-latest - permissions: - contents: write steps: - uses: actions/checkout@v3 @@ -24,17 +22,15 @@ jobs: run: dotnet publish -r linux-x64 -c Release - name: Publish for windows run: dotnet publish -r win-x64 -c Release - - name: Upload Linux Artifact - uses: actions/upload-artifact@v4.0.0 - with: - name: ADBForwarder-linux-x64.zip - path: ADBForwarder/bin/Release/net8.0/linux-x64/publish - - name: Upload Windows Artifact - uses: actions/upload-artifact@v4.0.0 - with: - name: ADBForwarder-windows-x64.zip - path: ADBForwarder/bin/Release/net8.0/win-x64/publish - - uses: ncipollo/release-action@v1 + - name: Pack linux build + run: zip -r ADBForwarder-windows-x64.zip ADBForwarder/bin/Release/net8.0/linux-x64/ + - name: Pack windows build + run: zip -r ADBForwarder-windows-x64.zip ADBForwarder/bin/Release/net8.0/win-x64/ + - name: Release + uses: softprops/action-gh-release@v1 + if: startsWith(github.ref, 'refs/tags/') with: draft: true - artifacts: "ADBForwarder-linux-x64.zip,ADBForwarder-windows-x64.zip" \ No newline at end of file + files: | + ADBForwarder-linux-x64.zip + ADBForwarder-windows-x64.zip \ No newline at end of file