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 74ff989
Show file tree
Hide file tree
Showing 4 changed files with 34 additions and 23 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
32 changes: 20 additions & 12 deletions stellar-dotnet-sdk-xdr/stellar-dotnet-sdk-xdr.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,32 +2,40 @@

<PropertyGroup>
<TargetFramework>net6.0</TargetFramework>
<Version>1.0</Version>
<ApplicationIcon />
<Version>9.1.1</Version>
<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>
<PackageLicense/>
<EnablePackageValidation>true</EnablePackageValidation>
<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>
<Copyright>Copyright © 2018 Elucidsoft; Copyright © 2024 Beans-BV</Copyright>
<PackageProjectUrl>https://github.com/Beans-BV/dotnet-stellar-sdk</PackageProjectUrl>
<RepositoryUrl>https://github.com/Beans-BV/dotnet-stellar-sdk</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>
<PackageTags>'.NET Core' 'Stellar' 'Horizon' 'Blockchain' 'Crypto' 'XDR'</PackageTags>
<ReleaseNotes>https://github.com/Beans-BV/dotnet-stellar-sdk/releases</ReleaseNotes>
<WarningLevel>0</WarningLevel>
<IsPackable>true</IsPackable>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
<Nullable>enable</Nullable>
</PropertyGroup>

<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|AnyCPU'">
<GenerateDocumentationFile>true</GenerateDocumentationFile>
</PropertyGroup>

<ItemGroup>
<None Include="..\LICENSE.txt" Pack="true" PackagePath="" />
</ItemGroup>
<ItemGroup>
<None Include="..\nugetreadme.md" Pack="true" PackagePath="" />
</ItemGroup>

<PropertyGroup>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
<Nullable>enable</Nullable>
<PackageReadmeFile>nugetreadme.md</PackageReadmeFile>
</PropertyGroup>

</Project>
8 changes: 2 additions & 6 deletions stellar-dotnet-sdk/stellar-dotnet-sdk.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net6.0</TargetFramework>
<Version>9.1.0</Version>
<Version>9.1.1</Version>
<ApplicationIcon />
<OutputType>Library</OutputType>
<StartupObject />
Expand All @@ -18,14 +18,10 @@
<PackageTags>'.NET Core' 'Stellar' 'Horizon' 'Blockchain' 'Crypto' 'Distributed Ledger'</PackageTags>
<ReleaseNotes>https://github.com/Beans-BV/dotnet-stellar-sdk/releases</ReleaseNotes>
<Nullable>enable</Nullable>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
<DocumentationFile>bin\stellar-dotnet-sdk.xml</DocumentationFile>
<WarningLevel>1</WarningLevel>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|AnyCPU'">
<DocumentationFile>bin\stellar-dotnet-sdk.xml</DocumentationFile>
<WarningLevel>1</WarningLevel>
<GenerateDocumentationFile>true</GenerateDocumentationFile>
</PropertyGroup>
<PropertyGroup>
<PackageReadmeFile>nugetreadme.md</PackageReadmeFile>
Expand Down

0 comments on commit 74ff989

Please sign in to comment.