Skip to content

Commit

Permalink
Add publication to the nuget
Browse files Browse the repository at this point in the history
  • Loading branch information
Dubzer committed Aug 19, 2024
1 parent de6098b commit bffa94a
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ on:

jobs:
publish:
name: 'Build and publish to NuGet'
name: 'Build and publish to the package repository'
runs-on: 'ubuntu-latest'
steps:
- uses: 'actions/checkout@v4'
Expand All @@ -23,4 +23,6 @@ jobs:
- name: 'Add Github NuGet source'
run: dotnet nuget add source --username Dubzer --password ${{ secrets.GITHUB_TOKEN }} --store-password-in-clear-text --name github "https://nuget.pkg.github.com/Dubzer/index.json"
- name: 'Publish package to Github Packages'
run: dotnet nuget push -s github --api-key ${{ secrets.GITHUB_TOKEN }} artifacts/package/release/*.nupkg
run: dotnet nuget push -s github --api-key ${{ secrets.GITHUB_TOKEN }} artifacts/package/release/*.nupkg
- name: 'Publish package to NuGet'
run: dotnet nuget push -s https://api.nuget.org/v3/index.json --api-key ${{ secrets.NUGET_API_KEY }}

0 comments on commit bffa94a

Please sign in to comment.