Skip to content

Commit

Permalink
Filter branches that push to nuget (#177)
Browse files Browse the repository at this point in the history
  • Loading branch information
EEParker authored Apr 3, 2024
1 parent 55d211c commit 571d41c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Build.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,9 @@ foreach ($test in Get-ChildItem test/*.Tests) {

Pop-Location

if ($env:NUGET_API_KEY -and ($NULL -ne $suffix -or $NULL -ne $prefix)) {
if ($env:NUGET_API_KEY `
-and ($NULL -ne $suffix -or $NULL -ne $prefix) `
-and ($env:CI_TARGET_BRANCH -eq "dev" -or $env:CI_TARGET_BRANCH -eq "master")) {
# GitHub Actions will only supply this to branch builds and not PRs. We publish
# builds from any branch this action targets (i.e. master and dev).

Expand Down

0 comments on commit 571d41c

Please sign in to comment.