From 588100db8466d9700a79dd878716dfcae1bbc7eb 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 | 15 ++-------------
3 files changed, 14 insertions(+), 18 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..bb62ed0c 100644
--- a/stellar-dotnet-sdk-xdr/stellar-dotnet-sdk-xdr.csproj
+++ b/stellar-dotnet-sdk-xdr/stellar-dotnet-sdk-xdr.csproj
@@ -2,23 +2,12 @@
net6.0
- 1.0
-
Library
stellar_dotnet_sdk_xdr
- true
- The .NET Standard XDR Objects for the Stellar Network Protocol
- stellar-dotnet-sdk-xdr
-
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
- git
- '.NET Core' 'Stellar' 'Horizon' 'Blockchain' 'Crypto' 'Distributed Ledger'
- https://github.com/elucidsoft/dotnet-stellar-sdk/releases
- 0
+ 0
+ false