From c2c50a10c6e41a864dc365cd3ee41c13361bc746 Mon Sep 17 00:00:00 2001 From: Nikolay Borisenko <22616990+nvborisenko@users.noreply.github.com> Date: Tue, 27 Feb 2024 17:32:02 +0300 Subject: [PATCH] Fix release github actions --- .github/workflows/release.yml | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index f1e975b..0c39fda 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -14,8 +14,15 @@ jobs: - uses: actions/checkout@v3 with: fetch-depth: 0 + + - name: Setup GitHub NuGet feed + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + run: dotnet nuget update source "ReportPortal GitHub" --username reportportal --password ${{ secrets.GITHUB_TOKEN }} --store-password-in-clear-text + - name: Pack run: dotnet pack -c Release --property:PackageOutputPath=../../pkgs + - name: Upload Artifacts uses: actions/upload-artifact@v3 with: @@ -40,7 +47,7 @@ jobs: if: startsWith(github.event.ref, 'refs/tags') environment: name: NuGet Gallery - url: https://www.nuget.org/packages/ReportPortal.Client + url: https://www.nuget.org/packages/ReportPortal.NUnit runs-on: ubuntu-latest needs: Build @@ -48,4 +55,4 @@ jobs: - name: Download Artifacts uses: actions/download-artifact@v3 - name: Push - run: dotnet nuget push **/*.nupkg -s 'https://api.nuget.org/v3/index.json' -k ${{secrets.NUGET_API_KEY}} + run: dotnet nuget push **/*.nupkg -s 'https://api.nuget.org/v3/index.json' -k ${{ secrets.NUGET_API_KEY }}