diff --git a/.github/workflows/CIBuild.yml b/.github/workflows/CIBuild.yml index 03e66647..a1af09d2 100644 --- a/.github/workflows/CIBuild.yml +++ b/.github/workflows/CIBuild.yml @@ -37,6 +37,6 @@ jobs: path: Output/NuGet/Release - name: Publish to Esri Nuget Repo - if: github.event.pull_request.merged + if: ${{ github.ref == 'refs/heads/main' }} run: | dotnet nuget push Output\NuGet\Release\*.nupkg --api-key ${{ secrets.GithubPushPackagesSecret }} --source https://nuget.pkg.github.com/esri/index.json