From f324766b3843b344990c08e0b1c4fef3ad33354c Mon Sep 17 00:00:00 2001 From: Wes Haggard Date: Thu, 6 Jun 2024 11:08:12 -0700 Subject: [PATCH 1/2] Enable nuget publish step in release --- .github/workflows/release.yml | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 0c07add0d..a84d3016d 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -34,7 +34,7 @@ jobs: # Append the nuget package to the github release that triggered this workflow - name: Upload release asset run: gh release upload ${{ github.event.release.tag_name }} - ${{github.workspace}}/artifacts/packages/*.nupkg + ${{github.workspace}}/artifacts/packages/*.*nupkg env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} @@ -44,9 +44,9 @@ jobs: name: build-artifacts path: ${{github.workspace}}/artifacts - # - name: Publish - # run: dotnet nuget push - # ${{github.workspace}}/artifacts/packages/*.nupkg - # --source https://api.nuget.org/v3/index.json - # --api-key ${{ secrets.NUGET_API_KEY }} - # --skip-duplicate + - name: Publish + run: dotnet nuget push + ${{github.workspace}}/artifacts/packages/*.*nupkg + --source https://api.nuget.org/v3/index.json + --api-key ${{ secrets.NUGET_API_KEY }} + --skip-duplicate From ceb31546b9dfc64d5066d3bf4836a6de4cb42b8c Mon Sep 17 00:00:00 2001 From: Wes Haggard Date: Thu, 6 Jun 2024 11:09:11 -0700 Subject: [PATCH 2/2] Add both packages --- .github/workflows/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 4c201a68b..2d0b15341 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -54,7 +54,7 @@ jobs: - name: Publish if: github.event_name != 'pull_request' run: dotnet nuget push - ${{github.workspace}}/artifacts/packages/*.nupkg + ${{github.workspace}}/artifacts/packages/*.*nupkg --source "github" --api-key ${{ secrets.GITHUB_TOKEN }} --skip-duplicate