Skip to content

Commit

Permalink
Merge branch 'release/1.6.0'
Browse files Browse the repository at this point in the history
  • Loading branch information
Steffen committed Sep 29, 2022
2 parents 5437ffd + 392ac12 commit 5794e8c
Show file tree
Hide file tree
Showing 6 changed files with 88 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build-validation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ on:

jobs:
build-validation:
uses: abbgrade/PsBuildTasks/.github/workflows/build-validation-matrix.yml@1.5.1
uses: abbgrade/PsBuildTasks/.github/workflows/build-validation-matrix.yml@1.6.0
2 changes: 1 addition & 1 deletion .github/workflows/pre-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on:

jobs:
pre-release:
uses: abbgrade/PsBuildTasks/.github/workflows/pre-release-windows.yml@1.5.1
uses: abbgrade/PsBuildTasks/.github/workflows/pre-release-windows.yml@1.6.0
with:
module-name: PsBuildTasks
secrets:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on:

jobs:
release:
uses: abbgrade/PsBuildTasks/.github/workflows/release-windows.yml@1.5.1
uses: abbgrade/PsBuildTasks/.github/workflows/release-windows.yml@1.6.0
with:
module-name: PsBuildTasks
secrets:
Expand Down
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

## [1.6.0] - 2022-09-29

### Added

- Added tasks file for powershell modules with only windows support.

## [1.5.1] - 2022-09-11

### Fixed
Expand Down
2 changes: 1 addition & 1 deletion src/PsBuildTasks.psd1
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
RootModule = 'PsBuildTasks.psm1'

# Version number of this module.
ModuleVersion = '1.5.1'
ModuleVersion = '1.6.0'

# Supported PSEditions
# CompatiblePSEditions = @()
Expand Down
78 changes: 78 additions & 0 deletions tasks/PowerShell-Windows.Tasks.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,78 @@

if ( -Not $PsBuildTaskBranch ) {
$PsBuildTaskBranch = 'main'
}

#region InvokeBuild

task UpdateBuildTasks {
Invoke-WebRequest `
-Uri "https://raw.githubusercontent.com/abbgrade/PsBuildTasks/$PsBuildTaskBranch/Powershell/Build.Tasks.ps1" `
-OutFile "$PSScriptRoot\Build.Tasks.ps1"
}

#endregion
#region GitHub Actions

task UpdateValidationWorkflow {
[System.IO.FileInfo] $file = "$PSScriptRoot/../.github/workflows/build-validation.yml"
New-Item -Type Directory $file.Directory -ErrorAction SilentlyContinue
Invoke-WebRequest `
-Uri "https://raw.githubusercontent.com/abbgrade/PsBuildTasks/$PsBuildTaskBranch/GitHub/build-validation-windows.yml" `
-OutFile $file
}

task UpdatePreReleaseWorkflow {
requires ModuleName
[System.IO.FileInfo] $file = "$PSScriptRoot\..\.github\workflows\pre-release.yml"
New-Item -Type Directory $file.Directory -ErrorAction SilentlyContinue
Invoke-WebRequest `
-Uri "https://raw.githubusercontent.com/abbgrade/PsBuildTasks/$PsBuildTaskBranch/GitHub/pre-release-windows.yml" |
ForEach-Object { $_ -replace 'MyModuleName', $ModuleName } |
Out-File $file -NoNewline
}

task UpdateReleaseWorkflow {
requires ModuleName
[System.IO.FileInfo] $file = "$PSScriptRoot\..\.github\workflows\release.yml"
New-Item -Type Directory $file.Directory -ErrorAction SilentlyContinue
Invoke-WebRequest `
-Uri "https://raw.githubusercontent.com/abbgrade/PsBuildTasks/$PsBuildTaskBranch/GitHub/release-windows.yml" |
ForEach-Object { $_ -replace 'MyModuleName', $ModuleName } |
Out-File $file -NoNewline
}

#endregion
#region GitHub Pages

task UpdateIndexPage {
New-Item -Type Directory "$PSScriptRoot\..\docs" -ErrorAction SilentlyContinue
Invoke-WebRequest `
-Uri "https://raw.githubusercontent.com/abbgrade/PsBuildTasks/$PsBuildTaskBranch/docs/index.md" `
-OutFile "$PSScriptRoot\..\docs\index.md"
Invoke-WebRequest `
-Uri "https://raw.githubusercontent.com/abbgrade/PsBuildTasks/$PsBuildTaskBranch/docs/_config.yml" `
-OutFile "$PSScriptRoot\..\docs\_config.yml"
}

#endregion
#region VsCode

task UpdateVsCodeTasks {
Invoke-WebRequest `
-Uri "https://raw.githubusercontent.com/abbgrade/PsBuildTasks/$PsBuildTaskBranch/VsCode/tasks.json" `
-OutFile "$PSScriptRoot\..\.vscode\tasks.json"
}

#endregion
#region PsBuildTasks

task UpdatePsBuildTasksTasks {
Invoke-WebRequest `
-Uri "https://raw.githubusercontent.com/abbgrade/PsBuildTasks/$PsBuildTaskBranch/tasks/PowerShell-Windows.Tasks.ps1" `
-OutFile "$PSScriptRoot\PsBuild.Tasks.ps1"
}

#endregion

task UpdatePsBuildTasks -Jobs UpdateBuildTasks, UpdateValidationWorkflow, UpdatePreReleaseWorkflow, UpdateIndexPage, UpdateReleaseWorkflow, UpdateVsCodeTasks, UpdatePsBuildTasksTasks

0 comments on commit 5794e8c

Please sign in to comment.