Skip to content

Commit 3a7e125

Browse files
committed
fix build
1 parent 9180c22 commit 3a7e125

1 file changed

Lines changed: 8 additions & 4 deletions

File tree

.github/workflows/build.yml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,12 @@ jobs:
1818
with:
1919
dotnet-version: 10.0.x
2020

21+
- name: NuGet login
22+
uses: NuGet/login@v1
23+
id: login
24+
with:
25+
user: ${{secrets.NUGET_USER}}
26+
2127
- name: Build
2228
run: dotnet build --configuration Release
2329

@@ -29,8 +35,6 @@ jobs:
2935

3036
- name: Publish to NuGet
3137
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}}
3339

34-
- name: Publish to GitHub Packages
35-
if: startsWith(github.ref, 'refs/tags/')
36-
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

Comments
 (0)