Skip to content

Commit

Permalink
Disabled packing for the console and XDR projects (#6)
Browse files Browse the repository at this point in the history
  • Loading branch information
cuongph87 authored and jopmiddelkamp committed Jan 29, 2024
1 parent 7f32e27 commit 588100d
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 18 deletions.
16 changes: 11 additions & 5 deletions .github/workflows/publish_nuget.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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
Expand All @@ -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
}
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
<OutputType>Exe</OutputType>
<TargetFramework>net6.0</TargetFramework>
<Nullable>enable</Nullable>
<IsPackable>false</IsPackable>
</PropertyGroup>

<ItemGroup>
Expand Down
15 changes: 2 additions & 13 deletions stellar-dotnet-sdk-xdr/stellar-dotnet-sdk-xdr.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,23 +2,12 @@

<PropertyGroup>
<TargetFramework>net6.0</TargetFramework>
<Version>1.0</Version>
<ApplicationIcon />
<OutputType>Library</OutputType>
<StartupObject />
<RootNamespace>stellar_dotnet_sdk_xdr</RootNamespace>
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
<Description>The .NET Standard XDR Objects for the Stellar Network Protocol</Description>
<PackageId>stellar-dotnet-sdk-xdr</PackageId>
<PackageLicense></PackageLicense>
<PackageLicenseFile>LICENSE.txt</PackageLicenseFile>
<Copyright>elucidsoft 2019</Copyright>
<PackageProjectUrl>https://github.com/elucidsoft/dotnet-stellar-sdk/tree/master/stellar-dotnet-sdk-xdr</PackageProjectUrl>
<RepositoryUrl>https://github.com/elucidsoft/dotnet-stellar-sdk/tree/master/stellar-dotnet-sdk-xdr</RepositoryUrl>
<RepositoryType>git</RepositoryType>
<PackageTags>'.NET Core' 'Stellar' 'Horizon' 'Blockchain' 'Crypto' 'Distributed Ledger'</PackageTags>
<ReleaseNotes>https://github.com/elucidsoft/dotnet-stellar-sdk/releases</ReleaseNotes>
<WarningLevel>0</WarningLevel>
<WarningLevel>0</WarningLevel>
<IsPackable>false</IsPackable>
</PropertyGroup>

<ItemGroup>
Expand Down

0 comments on commit 588100d

Please sign in to comment.