From 57dee7de41f3139e00c24cb777997afbecf52d68 Mon Sep 17 00:00:00 2001 From: Konstantin Diachenko Date: Sun, 26 Jan 2025 20:37:32 +0530 Subject: [PATCH] Fix https://github.com/linksplatform/Data.Doublets.Sequences/issues/33 --- .github/workflows/csharp.yml | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/.github/workflows/csharp.yml b/.github/workflows/csharp.yml index 6cde062..0aeb023 100644 --- a/.github/workflows/csharp.yml +++ b/.github/workflows/csharp.yml @@ -36,12 +36,19 @@ jobs: uses: actions/setup-dotnet@v3 with: dotnet-version: '8.0.x' - - name: Publish NuGet package to GitHub Package Registry + - name: Restore dependencies + run: dotnet restore + - name: Build + run: dotnet build --configuration Release --no-restore + - name: Pack + run: dotnet pack --configuration Release --no-restore --output ./nupkgs + - name: Push NuGet package to GitHub Package Registry run: | - dotnet build -c Release - dotnet pack -c Release - nuget source Add -Name "GitHub" -Source "https://nuget.pkg.github.com/linksplatform/index.json" -UserName linksplatform -Password ${{ secrets.GITHUB_TOKEN }} - nuget push **/*.nupkg -Source "GitHub" -SkipDuplicate + dotnet nuget push ./nupkgs/*.nupkg \ + --source "github" \ + --api-key "${{ secrets.GITHUB_TOKEN }}" + env: + NUGET_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }} pusnToNuget: runs-on: ubuntu-latest needs: test