Skip to content

Commit

Permalink
chore: Updated build.yml - Make pack configuration for Release, condi…
Browse files Browse the repository at this point in the history
…tional dotnet push to nuget.org.
  • Loading branch information
snovak7 committed May 13, 2023
1 parent 974d82d commit 7d59c70
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,13 @@ jobs:
- name: Build .NET Solution
run: dotnet build --configuration Release --no-restore
- name: Pack .NET Solution
run: dotnet pack --no-build --output pack/
run: dotnet pack --configuration Release --no-build --output pack/
- name: Publish .NET Solution to GitHub Packages
continue-on-error: true
run: dotnet nuget push pack/* --api-key ${{ secrets.GITHUB_TOKEN }} --source "https://nuget.pkg.github.com/${{ github.repository_owner }}/index.json"
- name: Publish .NET Solution to NuGet.org
continue-on-error: true
env:
apikey: ${{ secrets.NUGET_ORG_KEY }}
if: ${{ env.apikey != '' }}
run: dotnet nuget push pack/* --api-key ${{ secrets.NUGET_ORG_KEY }} --source nuget

continue-on-error: true

0 comments on commit 7d59c70

Please sign in to comment.