Skip to content

Commit

Permalink
Update dotnet.yml
Browse files Browse the repository at this point in the history
Add GitHub Package Publish
  • Loading branch information
enusbaum authored Nov 16, 2024
1 parent 0a4b5f6 commit f2a6a9f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/dotnet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ env:
PROJECT_NAME: ADNES
NUGET_FEED: https://api.nuget.org/v3/index.json
NUGET_KEY: ${{ secrets.NUGET_KEY }}
GITHUB_PAT: ${{ secrets.GH_PAT }}

jobs:
build:
Expand Down Expand Up @@ -52,3 +53,6 @@ jobs:

- name: Push to NuGet Feed
run: dotnet nuget push ./nupkg/*.nupkg --source $NUGET_FEED --api-key $NUGET_KEY --skip-duplicate

- name: Push to GitHub Packages
run: dotnet nuget push ./nupkg/*.nupkg --source "https://nuget.pkg.github.com/${{ github.repository_owner }}/index.json" --api-key ${{ secrets.GITHUB_PAT }} --skip-duplicate

0 comments on commit f2a6a9f

Please sign in to comment.