We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5b99781 commit 566dfa3Copy full SHA for 566dfa3
1 file changed
.github/workflows/CI.yml
@@ -61,10 +61,17 @@ jobs:
61
--api-key ${{ secrets.GITHUB_TOKEN }} \
62
--skip-duplicate
63
64
+ - name: NuGet login
65
+ uses: NuGet/login@v1
66
+ id: login
67
+ if: startsWith(github.ref, 'refs/tags/v')
68
+ with:
69
+ user: ${{ secrets.NUGET_USER }}
70
+
71
- name: Publish to NuGet
72
if: startsWith(github.ref, 'refs/tags/v')
73
run: |
74
dotnet nuget push ./nupkg/*.nupkg \
75
--source https://api.nuget.org/v3/index.json \
- --api-key ${{ secrets.NUGET_API_KEY }} \
76
+ --api-key ${{ steps.login.outputs.NUGET_API_KEY }} \
77
0 commit comments