From b61d89fc73d19795fa757f8640feb77fd7ce31b1 Mon Sep 17 00:00:00 2001 From: Steven Ryland Date: Sat, 18 May 2024 12:16:25 -0700 Subject: [PATCH] Update nuget_plublish.yml and rename build_and_test.yml --- .../workflows/{build_and_test.yaml => build_and_test.yml} | 0 .github/workflows/nuget_publish.yml | 6 ++++-- 2 files changed, 4 insertions(+), 2 deletions(-) rename .github/workflows/{build_and_test.yaml => build_and_test.yml} (100%) diff --git a/.github/workflows/build_and_test.yaml b/.github/workflows/build_and_test.yml similarity index 100% rename from .github/workflows/build_and_test.yaml rename to .github/workflows/build_and_test.yml diff --git a/.github/workflows/nuget_publish.yml b/.github/workflows/nuget_publish.yml index 042b57d..75d6b93 100644 --- a/.github/workflows/nuget_publish.yml +++ b/.github/workflows/nuget_publish.yml @@ -1,6 +1,8 @@ name: NuGet Publish on: + push: + branches: [ "master" ] workflow_dispatch: jobs: @@ -21,6 +23,6 @@ jobs: - name: Publish GitHub run: | dotnet nuget add source --username USERNAME --password ${{ secrets.GITHUBTOKEN }} --store-password-in-clear-text --name github "https://nuget.pkg.github.com/DrEsteban/index.json" - dotnet nuget push --api-key ${{ secrets.GITHUBTOKEN }} ./**/Release/*.nupkg --source github + dotnet nuget push --skip-duplicate --api-key ${{ secrets.GITHUBTOKEN }} ./**/Release/*.nupkg --source github - name: Publish NuGet - run: dotnet nuget push --api-key ${{ secrets.NUGETTOKEN }} ./**/Release/*.nupkg --source https://api.nuget.org/v3/index.json + run: dotnet nuget push --skip-duplicate --api-key ${{ secrets.NUGETTOKEN }} ./**/Release/*.nupkg --source https://api.nuget.org/v3/index.json