Browse Source
Merge pull request #2247 from icsharpcode/christophwille-publish-nuget
Use API Key for NuGet Publish
pull/2276/head
Christoph Wille
5 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
7 additions and
0 deletions
-
.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 |
|
|
|