Skip to content

Commit

Permalink
Update build script.
Browse files Browse the repository at this point in the history
  • Loading branch information
homotechsual committed May 4, 2023
1 parent 2364125 commit c515e03
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions HaloAPI.build.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
#>
Param (
[String]$Configuration = 'Development',
[String[]]$Remotes = @('origin', 'homotechsual'),
[Switch]$Push,
[Switch]$UpdateHelp,
[Switch]$CopyModuleFiles,
[Switch]$Test,
Expand All @@ -17,6 +19,14 @@ $ModuleName = 'HaloAPI'
# Use strict mode when building.
Set-StrictMode -Version Latest

if ($Push) {
# Push to remote repositories.
foreach ($Remote in $Remotes) {
Start-Process -FilePath 'git' -ArgumentList @('push', $Remote) -Wait -NoNewWindow
Start-Process -FilePath 'git' -ArgumentList @('push', $Remote, '--tags') -Wait -NoNewWindow
}
}

# Update the PowerShell Module Help Files.
# Pre-requisites: PowerShell Module PlatyPS.

Expand Down

0 comments on commit c515e03

Please sign in to comment.