Skip to content

Commit 3bc5c18

Browse files
author
James Brundage
committed
feat: Zippy build source ( Fixes #4 )
1 parent e4a0d08 commit 3bc5c18

3 files changed

Lines changed: 39 additions & 0 deletions

File tree

‎Build/GitHub/Jobs/BuildZippy.psd1‎

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
@{
2+
"runs-on" = "ubuntu-latest"
3+
if = '${{ success() }}'
4+
steps = @(
5+
@{
6+
name = 'Check out repository'
7+
uses = 'actions/checkout@main'
8+
}
9+
)
10+
}
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
@{
2+
name = 'PublishTestResults'
3+
uses = 'actions/upload-artifact@main'
4+
with = @{
5+
name = 'PesterResults'
6+
path = '**.TestResults.xml'
7+
}
8+
if = '${{always()}}'
9+
}
10+
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
#requires -Module PSDevOps
2+
param(
3+
$moduleName = $(
4+
$PSScriptRoot | Split-Path | Split-Path -Leaf
5+
)
6+
)
7+
8+
Import-BuildStep -SourcePath (
9+
Join-Path $PSScriptRoot 'GitHub'
10+
) -BuildSystem GitHubWorkflow
11+
12+
13+
Push-Location ($PSScriptRoot | Split-Path)
14+
New-GitHubWorkflow -Name "Build Module" -On Push,
15+
PullRequest,
16+
Demand -Job TestPowerShellOnLinux,
17+
TagReleaseAndPublish, "Build$moduleName" -OutputPath .\.github\workflows\build.yml
18+
19+
Pop-Location

0 commit comments

Comments
 (0)