Skip to content

Commit

Permalink
feat: add publish to github package
Browse files Browse the repository at this point in the history
  • Loading branch information
lausannel committed Jul 10, 2024
1 parent 89158e1 commit b6e4b0e
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: .NET Release to NuGet
name: Release to NuGet and GitHub Packages

on:
release:
Expand Down Expand Up @@ -32,3 +32,8 @@ jobs:
dotnet nuget push "nupkgs/*.nupkg" --api-key ${{ secrets.NUGET_API_KEY }} --source https://api.nuget.org/v3/index.json
env:
NUGET_API_KEY: ${{ secrets.NUGET_API_KEY }}

- name: Publish Packages to GitHub Packages
run: dotnet nuget push "nupkgs/*.nupkg" --api-key ${{ secrets.GITHUB_TOKEN }} --source https://nuget.pkg.github.com/${{ github.repository_owner }}/index.json
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit b6e4b0e

Please sign in to comment.