fix nuget symbols (#626)

This commit is contained in:
Alex Vincent
2021-05-19 19:46:31 +02:00
committed by GitHub
parent 09f08d7659
commit 0b9d6a6dd6
2 changed files with 28 additions and 12 deletions

View File

@@ -10,20 +10,28 @@ jobs:
runs-on: windows-latest
steps:
- uses: actions/checkout@v1
- uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Setup dotnet SDK 3.1
- name: .NET Core 3.1.x SDK
uses: actions/setup-dotnet@v1
with:
dotnet-version: '3.1.x'
- name: Setup dotnet SDK 5
dotnet-version: 3.1.x
- name: .NET 5.x SDK
uses: actions/setup-dotnet@v1
with:
dotnet-version: '5.0.x'
- name: Test
dotnet-version: 5.0.x
- name: dotnet restore
run: dotnet restore --verbosity minimal --configfile nuget.config
- name: dotnet test
run: dotnet test
- name: Pack
run: dotnet pack --configuration Release src/KubernetesClient -o pkg
- name: Push
- name: dotnet pack
run: dotnet pack -c Release src/KubernetesClient -o pkg --include-symbols
- name: dotnet nuget push
run: dotnet nuget push pkg\*.nupkg -s https://www.nuget.org/ -k ${{ secrets.nuget_api_key }}

View File

@@ -1,15 +1,16 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<Authors>The Kubernetes Project Authors</Authors>
<Copyright>2017 The Kubernetes Project Authors</Copyright>
<Description>Client library for the Kubernetes open source container orchestrator.</Description>
<PackageLicenseUrl>https://www.apache.org/licenses/LICENSE-2.0</PackageLicenseUrl>
<PackageLicenseExpression>Apache-2.0</PackageLicenseExpression>
<PackageProjectUrl>https://github.com/kubernetes-client/csharp</PackageProjectUrl>
<PackageIconUrl>https://raw.githubusercontent.com/kubernetes/kubernetes/master/logo/logo.png</PackageIconUrl>
<PackageTags>kubernetes;docker;containers;</PackageTags>
<TargetFrameworks>netstandard2.1;net5</TargetFrameworks>
<TargetFrameworks>netstandard2.1;net5.0</TargetFrameworks>
<RootNamespace>k8s</RootNamespace>
<SignAssembly>true</SignAssembly>
<GenerateDocumentationFile>true</GenerateDocumentationFile>
@@ -20,6 +21,12 @@
<!-- Build symbol package (.snupkg) to distribute the PDB containing Source Link -->
<IncludeSymbols>true</IncludeSymbols>
<SymbolPackageFormat>snupkg</SymbolPackageFormat>
<EmbedUntrackedSources>true</EmbedUntrackedSources>
<AllowedOutputExtensionsInPackageBuildOutputFolder>$(AllowedOutputExtensionsInPackageBuildOutputFolder);.pdb</AllowedOutputExtensionsInPackageBuildOutputFolder>
</PropertyGroup>
<PropertyGroup Condition="'$(GITHUB_ACTIONS)' == 'true'">
<ContinuousIntegrationBuild>true</ContinuousIntegrationBuild>
</PropertyGroup>
<ItemGroup>
@@ -34,4 +41,5 @@
<PackageReference Include="System.Buffers" Version="4.5.1" />
<PackageReference Include="IdentityModel.OidcClient" Version="3.1.2" />
</ItemGroup>
</Project>