fix nuget symbols (#626)
This commit is contained in:
26
.github/workflows/nuget.yaml
vendored
26
.github/workflows/nuget.yaml
vendored
@@ -10,20 +10,28 @@ jobs:
|
|||||||
runs-on: windows-latest
|
runs-on: windows-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v1
|
- uses: actions/checkout@v2
|
||||||
with:
|
with:
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
- name: Setup dotnet SDK 3.1
|
|
||||||
|
- name: .NET Core 3.1.x SDK
|
||||||
uses: actions/setup-dotnet@v1
|
uses: actions/setup-dotnet@v1
|
||||||
with:
|
with:
|
||||||
dotnet-version: '3.1.x'
|
dotnet-version: 3.1.x
|
||||||
- name: Setup dotnet SDK 5
|
|
||||||
|
- name: .NET 5.x SDK
|
||||||
uses: actions/setup-dotnet@v1
|
uses: actions/setup-dotnet@v1
|
||||||
with:
|
with:
|
||||||
dotnet-version: '5.0.x'
|
dotnet-version: 5.0.x
|
||||||
- name: Test
|
|
||||||
|
- name: dotnet restore
|
||||||
|
run: dotnet restore --verbosity minimal --configfile nuget.config
|
||||||
|
|
||||||
|
- name: dotnet test
|
||||||
run: dotnet test
|
run: dotnet test
|
||||||
- name: Pack
|
|
||||||
run: dotnet pack --configuration Release src/KubernetesClient -o pkg
|
- name: dotnet pack
|
||||||
- name: Push
|
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 }}
|
run: dotnet nuget push pkg\*.nupkg -s https://www.nuget.org/ -k ${{ secrets.nuget_api_key }}
|
||||||
|
|||||||
@@ -1,15 +1,16 @@
|
|||||||
<Project Sdk="Microsoft.NET.Sdk">
|
<Project Sdk="Microsoft.NET.Sdk">
|
||||||
|
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<Authors>The Kubernetes Project Authors</Authors>
|
<Authors>The Kubernetes Project Authors</Authors>
|
||||||
<Copyright>2017 The Kubernetes Project Authors</Copyright>
|
<Copyright>2017 The Kubernetes Project Authors</Copyright>
|
||||||
<Description>Client library for the Kubernetes open source container orchestrator.</Description>
|
<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>
|
<PackageProjectUrl>https://github.com/kubernetes-client/csharp</PackageProjectUrl>
|
||||||
<PackageIconUrl>https://raw.githubusercontent.com/kubernetes/kubernetes/master/logo/logo.png</PackageIconUrl>
|
<PackageIconUrl>https://raw.githubusercontent.com/kubernetes/kubernetes/master/logo/logo.png</PackageIconUrl>
|
||||||
<PackageTags>kubernetes;docker;containers;</PackageTags>
|
<PackageTags>kubernetes;docker;containers;</PackageTags>
|
||||||
|
|
||||||
<TargetFrameworks>netstandard2.1;net5</TargetFrameworks>
|
<TargetFrameworks>netstandard2.1;net5.0</TargetFrameworks>
|
||||||
<RootNamespace>k8s</RootNamespace>
|
<RootNamespace>k8s</RootNamespace>
|
||||||
<SignAssembly>true</SignAssembly>
|
<SignAssembly>true</SignAssembly>
|
||||||
<GenerateDocumentationFile>true</GenerateDocumentationFile>
|
<GenerateDocumentationFile>true</GenerateDocumentationFile>
|
||||||
@@ -20,6 +21,12 @@
|
|||||||
<!-- Build symbol package (.snupkg) to distribute the PDB containing Source Link -->
|
<!-- Build symbol package (.snupkg) to distribute the PDB containing Source Link -->
|
||||||
<IncludeSymbols>true</IncludeSymbols>
|
<IncludeSymbols>true</IncludeSymbols>
|
||||||
<SymbolPackageFormat>snupkg</SymbolPackageFormat>
|
<SymbolPackageFormat>snupkg</SymbolPackageFormat>
|
||||||
|
<EmbedUntrackedSources>true</EmbedUntrackedSources>
|
||||||
|
<AllowedOutputExtensionsInPackageBuildOutputFolder>$(AllowedOutputExtensionsInPackageBuildOutputFolder);.pdb</AllowedOutputExtensionsInPackageBuildOutputFolder>
|
||||||
|
</PropertyGroup>
|
||||||
|
|
||||||
|
<PropertyGroup Condition="'$(GITHUB_ACTIONS)' == 'true'">
|
||||||
|
<ContinuousIntegrationBuild>true</ContinuousIntegrationBuild>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
@@ -34,4 +41,5 @@
|
|||||||
<PackageReference Include="System.Buffers" Version="4.5.1" />
|
<PackageReference Include="System.Buffers" Version="4.5.1" />
|
||||||
<PackageReference Include="IdentityModel.OidcClient" Version="3.1.2" />
|
<PackageReference Include="IdentityModel.OidcClient" Version="3.1.2" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
</Project>
|
|
||||||
|
</Project>
|
||||||
Reference in New Issue
Block a user