From 392bfa0f095dfc7fc68fa8531033003ad1165d03 Mon Sep 17 00:00:00 2001 From: prasenjeetnath <147582543+prasenjeetnath@users.noreply.github.com> Date: Fri, 24 Nov 2023 15:42:41 +0530 Subject: [PATCH] Update release.yml --- .github/workflows/release.yml | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 97dbf4e..198e445 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -17,11 +17,6 @@ jobs: working-directory: . steps: - - name: Checkout - uses: actions/checkout@v3 - with: - fetch-depth: 0 - - name: Download NuGet Packages from Release run: | Write-Host "GITHUB_REF: '$($env:GITHUB_REF)'" @@ -34,7 +29,9 @@ jobs: - name: Publish to github packages run: | - dotnet nuget push "*.nupkg" --api-key ${{ secrets.GITHUB_TOKEN }} --source "https://api.nuget.org/v3/index.json" + dotnet nuget add source --username ${{ secrets.USERNAME }} --password ${{ secrets.GITHUB_TOKEN }} --store-password-in-clear-text --name github "https://nuget.pkg.github.com/SIEMENS/index.json" + dotnet nuget push "*.nupkg" --api-key ${{ secrets.GITHUB_TOKEN }} --source github env: + USERNAME: ${{ secrets.USERNAME }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}