Skip to content
This repository has been archived by the owner on Oct 21, 2023. It is now read-only.

Commit

Permalink
updated build script to allow using main as new default branch
Browse files Browse the repository at this point in the history
  • Loading branch information
scrthq committed Jul 31, 2020
1 parent 153dc41 commit 6c64dcc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions invoke.build.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -360,14 +360,14 @@ $psGalleryConditions = {
-not [String]::IsNullOrEmpty($NextModuleVersion) -and
$env:BHBuildSystem -eq 'VSTS' -and
($env:BHCommitMessage -match '!deploy' -or $env:BUILD_REASON -eq 'Schedule') -and
$env:BHBranchName -eq "master"
$env:BHBranchName -match "^(master|main)$"
}
$gitHubConditions = {
-not [String]::IsNullOrEmpty($env:GitHubPAT) -and
-not [String]::IsNullOrEmpty($NextModuleVersion) -and
$env:BHBuildSystem -eq 'VSTS' -and
($env:BHCommitMessage -match '!deploy' -or $env:BUILD_REASON -eq 'Schedule') -and
$env:BHBranchName -eq "master"
$env:BHBranchName -match "^(master|main)$"
}
$tweetConditions = {
-not [String]::IsNullOrEmpty($env:TwitterAccessSecret) -and
Expand All @@ -377,7 +377,7 @@ $tweetConditions = {
-not [String]::IsNullOrEmpty($NextModuleVersion) -and
$env:BHBuildSystem -eq 'VSTS' -and
($env:BHCommitMessage -match '!deploy' -or $env:BUILD_REASON -eq 'Schedule') -and
$env:BHBranchName -eq "master"
$env:BHBranchName -match "^(master|main)$"
}

task PublishToPSGallery -If $psGalleryConditions {
Expand Down

0 comments on commit 6c64dcc

Please sign in to comment.