Skip to content

Commit

Permalink
Merge pull request #104 from rubo/main
Browse files Browse the repository at this point in the history
Refactor NuGet packaging
  • Loading branch information
uink45 authored Jun 25, 2024
2 parents 4475d85 + 9e045c7 commit 59e8620
Show file tree
Hide file tree
Showing 5 changed files with 35 additions and 21 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/discv5.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,10 +53,9 @@ jobs:

- name: Publish package
if: ${{ inputs.publish }}
working-directory: src/Lantern.Discv5.WireProtocol
run: |
dotnet pack -c ${{ env.BUILD_CONFIG }} --no-build
dotnet nuget push bin/${{ env.BUILD_CONFIG }}/*.nupkg -k ${{ secrets.NUGET_API_KEY }} -s https://api.nuget.org/v3/index.json
dotnet nuget push **/*.nupkg -k ${{ secrets.NUGET_API_KEY }} -s https://api.nuget.org/v3/index.json
sonar:
name: Build and analyze SonarCloud
Expand Down
11 changes: 10 additions & 1 deletion Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,17 @@
<PropertyGroup>
<Authors>Pier Two</Authors>
<Copyright>Pier Two Services Pty Ltd</Copyright>
<EmbedUntrackedSources>true</EmbedUntrackedSources>
<IncludeSymbols>true</IncludeSymbols>
<PackageLicenseExpression>MIT</PackageLicenseExpression>
<PackageProjectUrl>https://piertwo.com</PackageProjectUrl>
<PackageReadmeFile>README.md</PackageReadmeFile>
<PackageTags>network p2p discv5</PackageTags>
<RepositoryType>git</RepositoryType>
<RepositoryUrl>https://github.com/Pier-Two/Lantern.Discv5</RepositoryUrl>
<SymbolPackageFormat>snupkg</SymbolPackageFormat>
<VersionPrefix>1.0.0</VersionPrefix>
<VersionSuffix>preview.2</VersionSuffix>
<VersionSuffix>preview.3</VersionSuffix>
</PropertyGroup>

</Project>
20 changes: 13 additions & 7 deletions src/Lantern.Discv5.Enr/Lantern.Discv5.Enr.csproj
Original file line number Diff line number Diff line change
@@ -1,23 +1,29 @@
<Project Sdk="Microsoft.NET.Sdk">
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>net8.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
</PropertyGroup>

<PropertyGroup>
<Description>Ethereum Node Records (ENR) implementation for the Node Discovery Protocol v5.</Description>
<PackageId>PierTwo.Lantern.Discv5.Enr</PackageId>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Keccak256"/>
<PackageReference Include="Multiformats.Base"/>
<PackageReference Include="Multiformats.Hash"/>
<PackageReference Include="NBitcoin.Secp256k1"/>
<PackageReference Include="Keccak256" />
<PackageReference Include="Multiformats.Base" />
<PackageReference Include="Multiformats.Hash" />
<PackageReference Include="NBitcoin.Secp256k1" />
</ItemGroup>

<ItemGroup>
<ProjectReference Include="..\Lantern.Discv5.Rlp\Lantern.Discv5.Rlp.csproj" />
</ItemGroup>



<ItemGroup>
<None Include="../../README.md" Pack="true" PackagePath="/" />
</ItemGroup>

</Project>
9 changes: 9 additions & 0 deletions src/Lantern.Discv5.Rlp/Lantern.Discv5.Rlp.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,13 @@
<Nullable>enable</Nullable>
</PropertyGroup>

<PropertyGroup>
<Description>RLP implementation for the Node Discovery Protocol v5.</Description>
<PackageId>PierTwo.Lantern.Discv5.Rlp</PackageId>
</PropertyGroup>

<ItemGroup>
<None Include="../../README.md" Pack="true" PackagePath="/" />
</ItemGroup>

</Project>
13 changes: 2 additions & 11 deletions src/Lantern.Discv5.WireProtocol/Lantern.Discv5.WireProtocol.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -7,17 +7,8 @@
</PropertyGroup>

<PropertyGroup>
<Description>C# implementation of the Discv5 protocol.</Description>
<EmbedUntrackedSources>true</EmbedUntrackedSources>
<IncludeSymbols>true</IncludeSymbols>
<PackageId>PierTwo.Lantern.Discv5</PackageId>
<PackageLicenseExpression>MIT</PackageLicenseExpression>
<PackageProjectUrl>https://piertwo.com</PackageProjectUrl>
<PackageReadmeFile>README.md</PackageReadmeFile>
<PackageTags>network p2p discv5</PackageTags>
<RepositoryType>git</RepositoryType>
<RepositoryUrl>https://github.com/Pier-Two/Lantern.Discv5</RepositoryUrl>
<SymbolPackageFormat>snupkg</SymbolPackageFormat>
<Description>C# implementation of the Node Discovery Protocol v5.</Description>
<PackageId>PierTwo.Lantern.Discv5.WireProtocol</PackageId>
</PropertyGroup>

<ItemGroup>
Expand Down

0 comments on commit 59e8620

Please sign in to comment.