From 74ff989afa140d76194b2d15a4760bd004707670 Mon Sep 17 00:00:00 2001 From: cuongph87 <152460338+cuongph87@users.noreply.github.com> Date: Mon, 29 Jan 2024 12:42:49 +0700 Subject: [PATCH] Disabled packing for the console and XDR projects (#6) --- .github/workflows/publish_nuget.yml | 16 +++++++--- .../stellar-dotnet-sdk-console.csproj | 1 + .../stellar-dotnet-sdk-xdr.csproj | 32 ++++++++++++------- stellar-dotnet-sdk/stellar-dotnet-sdk.csproj | 8 ++--- 4 files changed, 34 insertions(+), 23 deletions(-) diff --git a/.github/workflows/publish_nuget.yml b/.github/workflows/publish_nuget.yml index 6fdfb9e6..75b10a55 100644 --- a/.github/workflows/publish_nuget.yml +++ b/.github/workflows/publish_nuget.yml @@ -3,10 +3,14 @@ on: workflow_dispatch: push: branches: - - 'master' + - master + pull_request_target: + types: + - opened + - synchronize release: types: - - published + - published env: DOTNET_SKIP_FIRST_TIME_EXPERIENCE: 1 DOTNET_NOLOGO: true @@ -31,7 +35,7 @@ jobs: validate_nuget: runs-on: ubuntu-latest - needs: [create_nuget] + needs: create_nuget steps: - name: Setup .NET uses: actions/setup-dotnet@v4 @@ -58,7 +62,9 @@ jobs: # https://docs.github.com/en/repositories/releasing-projects-on-github/managing-releases-in-a-repository if: github.event_name == 'release' runs-on: ubuntu-latest - needs: [validate_nuget, run_test] + needs: + - validate_nuget + - run_test steps: # Download the NuGet package created in the previous job - uses: actions/download-artifact@v3 @@ -72,5 +78,5 @@ jobs: - name: Publish NuGet package run: | foreach($file in (Get-ChildItem "${{env.NuGetDirectory}}" -Recurse -Include *.nupkg)) { - dotnet nuget push $file --api-key "${{secrets.NUGET_APIKEY}}" --source https://api.nuget.org/v3/index.json --skip-duplicate + dotnet nuget push $file --api-key "${{secrets.NUGET_API_KEY}}" --source https://api.nuget.org/v3/index.json --skip-duplicate } diff --git a/stellar-dotnet-sdk-console/stellar-dotnet-sdk-console.csproj b/stellar-dotnet-sdk-console/stellar-dotnet-sdk-console.csproj index a8f0a43d..64960f51 100644 --- a/stellar-dotnet-sdk-console/stellar-dotnet-sdk-console.csproj +++ b/stellar-dotnet-sdk-console/stellar-dotnet-sdk-console.csproj @@ -4,6 +4,7 @@ Exe net6.0 enable + false diff --git a/stellar-dotnet-sdk-xdr/stellar-dotnet-sdk-xdr.csproj b/stellar-dotnet-sdk-xdr/stellar-dotnet-sdk-xdr.csproj index 23e9c00b..49516fa5 100644 --- a/stellar-dotnet-sdk-xdr/stellar-dotnet-sdk-xdr.csproj +++ b/stellar-dotnet-sdk-xdr/stellar-dotnet-sdk-xdr.csproj @@ -2,32 +2,40 @@ net6.0 - 1.0 - + 9.1.1 Library stellar_dotnet_sdk_xdr - true The .NET Standard XDR Objects for the Stellar Network Protocol stellar-dotnet-sdk-xdr - + + true LICENSE.txt - elucidsoft 2019 - https://github.com/elucidsoft/dotnet-stellar-sdk/tree/master/stellar-dotnet-sdk-xdr - https://github.com/elucidsoft/dotnet-stellar-sdk/tree/master/stellar-dotnet-sdk-xdr + Copyright © 2018 Elucidsoft; Copyright © 2024 Beans-BV + https://github.com/Beans-BV/dotnet-stellar-sdk + https://github.com/Beans-BV/dotnet-stellar-sdk git - '.NET Core' 'Stellar' 'Horizon' 'Blockchain' 'Crypto' 'Distributed Ledger' - https://github.com/elucidsoft/dotnet-stellar-sdk/releases - 0 + '.NET Core' 'Stellar' 'Horizon' 'Blockchain' 'Crypto' 'XDR' + https://github.com/Beans-BV/dotnet-stellar-sdk/releases + 0 + true + true + enable + + + + true + + + - true - enable + nugetreadme.md diff --git a/stellar-dotnet-sdk/stellar-dotnet-sdk.csproj b/stellar-dotnet-sdk/stellar-dotnet-sdk.csproj index 3467d771..455dbfce 100644 --- a/stellar-dotnet-sdk/stellar-dotnet-sdk.csproj +++ b/stellar-dotnet-sdk/stellar-dotnet-sdk.csproj @@ -1,7 +1,7 @@  net6.0 - 9.1.0 + 9.1.1 Library @@ -18,14 +18,10 @@ '.NET Core' 'Stellar' 'Horizon' 'Blockchain' 'Crypto' 'Distributed Ledger' https://github.com/Beans-BV/dotnet-stellar-sdk/releases enable - - - bin\stellar-dotnet-sdk.xml 1 - bin\stellar-dotnet-sdk.xml - 1 + true nugetreadme.md