There was an error while loading. Please reload this page.
1 parent 9180c22 commit 3a7e125Copy full SHA for 3a7e125
1 file changed
.github/workflows/build.yml
@@ -18,6 +18,12 @@ jobs:
18
with:
19
dotnet-version: 10.0.x
20
21
+ - name: NuGet login
22
+ uses: NuGet/login@v1
23
+ id: login
24
+ with:
25
+ user: ${{secrets.NUGET_USER}}
26
+
27
- name: Build
28
run: dotnet build --configuration Release
29
@@ -29,8 +35,6 @@ jobs:
35
30
36
- name: Publish to NuGet
31
37
if: startsWith(github.ref, 'refs/tags/')
32
- run: dotnet nuget push ./nupkg/*.nupkg -s https://api.nuget.org/v3/index.json
38
+ run: dotnet nuget push ./nupkg/*.nupkg -s https://api.nuget.org/v3/index.json --api-key ${{steps.login.NUGET_API_KEY}}
33
39
34
- - name: Publish to GitHub Packages
- if: startsWith(github.ref, 'refs/tags/')
- run: dotnet nuget push ./nupkg/*.nupkg -k ${{ secrets.GPM_TOKEN }} -s https://nuget.pkg.github.com/${{ github.repository_owner }}/index.json
40
0 commit comments