Skip to content

Commit

Permalink
Only run publish on commits to main
Browse files Browse the repository at this point in the history
  • Loading branch information
dotMorten authored Sep 5, 2024
1 parent 7642099 commit 1d9ab29
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/CIBuild.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 1d9ab29

Please sign in to comment.