Skip to content

Commit

Permalink
separate publishing steps for Github packages and nuget public
Browse files Browse the repository at this point in the history
  • Loading branch information
Psypher9 committed May 19, 2023
1 parent f8581f0 commit 878599e
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions .github/workflows/basic-repos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,12 @@ jobs:
run: |-
dotnet pack ${{ env.project_path }} -p:Version=${{ github.ref_name }} --output "${{ runner.temp }}"
- name: Publish ${{ env.package_name }}
- name: Publish ${{ env.package_name }} to GitHub Packages
if: github.event_name == 'release'
run: |-
dotnet nuget push ${{ runner.temp }}/*.nupkg -s github
dotnet nuget push ${{ runner.temp }}/*.nupkg -k ${{ secrets.NUGET_PUBLIC_API_KEY }} -s https://api.nuget.org/v3/index.json
dotnet nuget push ${{ runner.temp }}/*.nupkg -s github
- name: Publish ${{ env.package_name }} to NuGet
if: github.event_name == 'release' && always()
run: |-
dotnet nuget push ${{ runner.temp }}/*.nupkg -k ${{ secrets.NUGET_PUBLIC_API_KEY }} -s https://api.nuget.org/v3/index.json

0 comments on commit 878599e

Please sign in to comment.