Skip to content

Commit

Permalink
build: fix build script to support tasks at command line
Browse files Browse the repository at this point in the history
  • Loading branch information
kberridge committed Jan 25, 2024
1 parent 65c2153 commit e2863fb
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions build.ps1
Original file line number Diff line number Diff line change
@@ -1,3 +1,16 @@
<#
.Synopsis
Invoke-Build build script for KWBlog.
This script supports direct invocation and automatically installs the correct version
of Invoke-Build if it is missing.
Run the script, ex: `.\build deploy`
#>

param(
[Parameter(Position=0)]
[string[]]$Tasks
)

# Bootstrap invoke-build
if ($MyInvocation.ScriptName -notlike '*Invoke-Build.ps1') {
$ErrorActionPreference = 1
Expand Down

0 comments on commit e2863fb

Please sign in to comment.