Skip to content

Commit

Permalink
Add Symbols and Skip Duplicate and Publish Settings
Browse files Browse the repository at this point in the history
  • Loading branch information
Byrdman32 committed Jan 8, 2025
1 parent 2a3e7d8 commit 17c68f4
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,19 +34,24 @@ jobs:
run: dotnet pack ./RoveComm/RoveComm.csproj --configuration Release --output ./output

- name: Publish to GitHub Packages
id: publish_github
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
ls -l output
dotnet nuget push "./output/RoveComm.*.nupkg" \
--source "https://nuget.pkg.github.com/MissouriMRDT/index.json" \
--api-key $GITHUB_TOKEN
--source "https://nuget.pkg.github.com/${{ github.repository_owner }}/index.json" \
--symbol-source "https://nuget.pkg.github.com/${{ github.repository_owner }}/index.json" \
--api-key $GITHUB_TOKEN \
--skip-duplicate
- name: Publish to NuGet.org
id: publish_nuget
if: steps.publish_github.conclusion != 'cancelled'
env:
NUGET_API_KEY: ${{ secrets.NUGET_API_KEY }}
run: |
dotnet nuget push "./output/RoveComm.*.nupkg" \
--source "https://api.nuget.org/v3/index.json" \
--api-key $NUGET_API_KEY
--symbol-source "https://nuget.smbsrc.net/" \
--api-key $NUGET_API_KEY \
--skip-duplicate

0 comments on commit 17c68f4

Please sign in to comment.