Reusable sources for build, test, release automation of PowerShell modules, written in DotNet/C# or PowerShell.
It provides the following tasks:
.build
file.$ModuleName
variable to be set.$Configuration
variable to be set.src
directory, that contains the manifest file.publish
directory.docs
directory.Add the following task to your .build.ps1
file to create/update your build tasks.
task UpdateBuildTasks {
Invoke-WebRequest `
-Uri 'https://raw.githubusercontent.com/abbgrade/PsBuildTasks/main/DotNet/Build.Tasks.ps1' `
-OutFile "$PSScriptRoot\tasks\Build.Tasks.ps1"
}
src
directory, that contains the manifest file.publish
directory.docs
directory.Add the following task to your .build.ps1
file to create/update your build tasks.
task UpdateBuildTasks {
Invoke-WebRequest `
-Uri 'https://raw.githubusercontent.com/abbgrade/PsBuildTasks/main/Powershell/Build.Tasks.ps1' `
-OutFile "$PSScriptRoot\tasks\Build.Tasks.ps1"
}
To update all build tasks, add and use one of the following task:
task UpdatePsBuildTasksTasks {
Invoke-WebRequest `
-Uri 'https://raw.githubusercontent.com/abbgrade/PsBuildTasks/main/tasks/PowerShell-Matrix.Tasks.ps1' `
-OutFile "$PSScriptRoot\tasks\PsBuild.Tasks.ps1"
}
task UpdatePsBuildTasksTasks {
Invoke-WebRequest `
-Uri 'https://raw.githubusercontent.com/abbgrade/PsBuildTasks/main/tasks/Dotnet-Matrix.Tasks.ps1' `
-OutFile "$PSScriptRoot\tasks\PsBuild.Tasks.ps1"
}