From 3deacd0f84d264da01536504e5c4ec32312220bb Mon Sep 17 00:00:00 2001 From: Peyman Ranjbar <1858614+Peymanpn@users.noreply.github.com> Date: Fri, 28 Apr 2023 00:41:30 +0430 Subject: [PATCH] Now publishes artifacts on main only --- .github/workflows/dotnet.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/dotnet.yml b/.github/workflows/dotnet.yml index efc5e78..e118007 100644 --- a/.github/workflows/dotnet.yml +++ b/.github/workflows/dotnet.yml @@ -36,12 +36,12 @@ jobs: dotnet pack -v n --no-build --no-restore --output ./artifacts/ src/Pdsr.Http.Extensions - name: Upload package artifacts uses: actions/upload-artifact@v2 - if: github.ref == 'refs/heads/master' + if: github.ref == 'refs/heads/main' with: name: nuget-packages path: | **/*.nupkg **/*.snupkg - name: Publish packages - if: github.ref == 'refs/heads/master' + if: github.ref == 'refs/heads/main' run: dotnet nuget push **/*.nupkg --source https://api.nuget.org/v3/index.json --skip-duplicate --api-key ${{ secrets.NUGET_API_KEY }}