From 17c68f403e130ea7c84fba58c98064d505e20c90 Mon Sep 17 00:00:00 2001 From: Eli Byrd Date: Tue, 7 Jan 2025 22:30:17 -0600 Subject: [PATCH] Add Symbols and Skip Duplicate and Publish Settings --- .github/workflows/publish.yml | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 946e269..59481ef 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -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