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 }}