diff --git a/.github/workflows/nuget.yaml b/.github/workflows/nuget.yaml index 966190b..fc9b5a6 100644 --- a/.github/workflows/nuget.yaml +++ b/.github/workflows/nuget.yaml @@ -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 }} diff --git a/src/KubernetesClient/KubernetesClient.csproj b/src/KubernetesClient/KubernetesClient.csproj index eb4f464..47fe086 100644 --- a/src/KubernetesClient/KubernetesClient.csproj +++ b/src/KubernetesClient/KubernetesClient.csproj @@ -1,15 +1,16 @@ + The Kubernetes Project Authors 2017 The Kubernetes Project Authors Client library for the Kubernetes open source container orchestrator. - https://www.apache.org/licenses/LICENSE-2.0 + Apache-2.0 https://github.com/kubernetes-client/csharp https://raw.githubusercontent.com/kubernetes/kubernetes/master/logo/logo.png kubernetes;docker;containers; - netstandard2.1;net5 + netstandard2.1;net5.0 k8s true true @@ -20,6 +21,12 @@ true snupkg + true + $(AllowedOutputExtensionsInPackageBuildOutputFolder);.pdb + + + + true @@ -34,4 +41,5 @@ - + + \ No newline at end of file