Revise NuGet packaging (#221)
This commit is contained in:
parent
93714c2a8c
commit
0b6791bbce
|
@ -87,14 +87,14 @@ jobs:
|
|||
name: ckzg-library-wrapper-linux-arm64
|
||||
path: bindings/csharp/Ckzg.Bindings/runtimes/linux-arm64/native
|
||||
|
||||
- name: Setup .NET Core SDK
|
||||
- name: Set up .NET
|
||||
uses: actions/setup-dotnet@v3
|
||||
- name: Install dependencies
|
||||
run: cd bindings/csharp && dotnet restore
|
||||
- name: Test
|
||||
run: cd bindings/csharp && dotnet test --configuration Release --no-restore
|
||||
run: cd bindings/csharp && dotnet test -c release --no-restore
|
||||
- name: Build
|
||||
run: cd bindings/csharp && dotnet pack -p:Version=${{ inputs.version || env.binding_build_number_based_version }} --configuration Release --no-restore --output nupkgs
|
||||
run: cd bindings/csharp && dotnet pack -c release --no-restore -o nupkgs -p:Version=${{ inputs.version || env.binding_build_number_based_version }} -p:ContinuousIntegrationBuild=true
|
||||
- name: Upload package
|
||||
uses: actions/upload-artifact@v3
|
||||
with:
|
||||
|
@ -102,4 +102,4 @@ jobs:
|
|||
path: bindings/csharp/nupkgs/Ckzg.Bindings.*.nupkg
|
||||
- name: Publish package
|
||||
if: github.ref == 'refs/heads/main'
|
||||
run: dotnet nuget push bindings/csharp/nupkgs/Ckzg.Bindings.*.nupkg --api-key ${{ secrets.CSHARP_NUGET_APIKEY }} --source https://api.nuget.org/v3/index.json
|
||||
run: dotnet nuget push bindings/csharp/nupkgs/*.nupkg -k ${{ secrets.CSHARP_NUGET_APIKEY }} -s https://api.nuget.org/v3/index.json
|
||||
|
|
|
@ -2,26 +2,32 @@
|
|||
|
||||
<PropertyGroup>
|
||||
<AllowUnsafeBlocks>True</AllowUnsafeBlocks>
|
||||
<GeneratePackageOnBuild>True</GeneratePackageOnBuild>
|
||||
<ImplicitUsings>enable</ImplicitUsings>
|
||||
<LangVersion>preview</LangVersion>
|
||||
<LangVersion>latest</LangVersion>
|
||||
<Nullable>enable</Nullable>
|
||||
<OutputType>Library</OutputType>
|
||||
<PackageLicenseFile>LICENSE</PackageLicenseFile>
|
||||
<PackageProjectUrl>https://github.com/ethereum/c-kzg-4844/tree/main/bindings/csharp</PackageProjectUrl>
|
||||
<RootNamespace>Ckzg</RootNamespace>
|
||||
<TargetFramework>net6.0</TargetFramework>
|
||||
</PropertyGroup>
|
||||
|
||||
<PropertyGroup>
|
||||
<Authors>Ethereum Foundation</Authors>
|
||||
<Copyright>Ethereum Foundation</Copyright>
|
||||
<Description>The C# bindings for the Polynomial Commitments API library for EIP-4844</Description>
|
||||
<EmbedUntrackedSources>true</EmbedUntrackedSources>
|
||||
<IncludeSymbols>true</IncludeSymbols>
|
||||
<PackageId>Ckzg.Bindings</PackageId>
|
||||
<PackageLicenseExpression>Apache-2.0</PackageLicenseExpression>
|
||||
<PackageReadmeFile>README.md</PackageReadmeFile>
|
||||
<PackageTags>c-kzg eip-4844</PackageTags>
|
||||
<RepositoryType>git</RepositoryType>
|
||||
<RepositoryUrl>https://github.com/ethereum/c-kzg-4844</RepositoryUrl>
|
||||
<RootNamespace>Ckzg</RootNamespace>
|
||||
<TargetFramework>net6.0</TargetFramework>
|
||||
<Title>Ckzg.Bindings</Title>
|
||||
<SymbolPackageFormat>snupkg</SymbolPackageFormat>
|
||||
<Version>0.1.0.0</Version>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<None Include="..\README.md" Pack="true" PackagePath="\" />
|
||||
<None Include="..\..\..\LICENSE" Pack="true" PackagePath="\"/>
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
|
@ -32,4 +38,11 @@
|
|||
<Content CopyToOutputDirectory="PreserveNewest" Condition="Exists('runtimes/osx-arm64/native/ckzg.so')" Include="runtimes/osx-arm64/native/ckzg.so" Pack="true" PackagePath="runtimes/osx-arm64/native/ckzg.so" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.1.1">
|
||||
<PrivateAssets>all</PrivateAssets>
|
||||
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
|
||||
</PackageReference>
|
||||
</ItemGroup>
|
||||
|
||||
</Project>
|
||||
|
|
Loading…
Reference in New Issue