brandedoutcast / publish-nuget

📦 GitHub action to automate publishing NuGet packages when project version changes
https://github.com/marketplace/actions/publish-nuget
MIT License
197 stars 101 forks source link

NUGET_KEY not given #18

Closed martycook closed 4 years ago

martycook commented 4 years ago

I setup my nuget key in my secrets. I setup the publish-nuget action, but when I run it, the action doesn't see the nuget key. The actual warning is: NUGET_KEY not given.

Here is my workflow: https://github.com/CodeGator/CG.Triton.Primitives/blob/master/.github/workflows/buildMaster.yml

nuget publish is the last step. Any ideas?

martycook commented 4 years ago

After trying some more on my own I got it to work, sort of. Setting the ngkey to a secret using the env section, then referencing it using the $ngkey, sort of like this:

name: Build master on: push: branches: [ master ] pull_request: branches: [ master ] jobs: build: env: ngkey: ${{ secrets.NGKEY }} runs-on: windows-latest steps:

I'll close the issue since I got past the problem I was having.