Skip to content

Commit

Permalink
add upload to nuget
Browse files Browse the repository at this point in the history
  • Loading branch information
Epictek committed Sep 23, 2024
1 parent 261f944 commit 160e516
Showing 1 changed file with 11 additions and 8 deletions.
19 changes: 11 additions & 8 deletions .github/workflows/dotnet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,14 @@ jobs:
with:
path: packages

# publish-to-myget:
# runs-on: windows-2022
# needs: [build]
# steps:
# - uses: actions/download-artifact@v3
#
# - name: Publish to Myget
# run: dotnet nuget push */*.nupkg -k ${{ secrets.MYGET_TOKEN }} -s https://www.myget.org/F/blazorbindings/api/v2/package
publish-to-nuget:
needs: build
runs-on: ubuntu-latest
if: github.event_name == 'push'
steps:
- uses: actions/download-artifact@v3
with:
name: packages
- name: Push to NuGet
run: |
dotnet nuget push **/*.nupkg --api-key ${{ secrets.NUGET_API_KEY }} --source https://api.nuget.org/v3/index.json --skip-duplicate

0 comments on commit 160e516

Please sign in to comment.