From 7fa531d5a2b66f20e44d84b836ab7d59809b1bdd Mon Sep 17 00:00:00 2001 From: Christoph Wille Date: Mon, 21 Dec 2020 13:19:14 +0100 Subject: [PATCH] Use API Key as per https://github.blog/changelog/2020-10-29-nuget-supports-api-key-option/ --- .github/workflows/build-ilspy.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.github/workflows/build-ilspy.yml b/.github/workflows/build-ilspy.yml index 740a9b0b0..9a26511ad 100644 --- a/.github/workflows/build-ilspy.yml +++ b/.github/workflows/build-ilspy.yml @@ -110,6 +110,13 @@ jobs: path: ICSharpCode.Decompiler\bin\Release\ICSharpCode.Decompiler*.nupkg if-no-files-found: error + - name: Publish NuGet + if: github.ref == 'refs/heads/master' && matrix.channel == 'zip' && matrix.configuration == 'release' + run: | + dotnet nuget push "ICSharpCode.Decompiler\bin\Release\ICSharpCode.Decompiler*.nupkg" \ + --api-key ${{ secrets.GITHUB_TOKEN }} \ + --source https://nuget.pkg.github.com/${{ github.repository_owner }} + - name: Upload zip release build artifacts if: matrix.channel == 'zip' uses: actions/upload-artifact@v2