ScriptDeck.GitHubWorkflow.PSDevOps.ps1

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#requires -Module PSDevOps
#requires -Module ScriptDeck
Push-Location $PSScriptRoot

Import-BuildStep -ModuleName ScriptDeck

New-GitHubWorkflow -Name "Analyze, Test, Tag, and Publish" -On Push, PullRequest, Demand -Job PowerShellStaticAnalysis, TestPowerShellOnLinux, TagReleaseAndPublish, BuildScriptDeck -Environment @{    
    NoCoverage = $true
    ReleaseAsset = "*.streamDeckPlugin"
} -OutputPath .\.github\workflows\TestAndPublish.yml

Import-BuildStep -ModuleName GitPub

New-GitHubWorkflow -Job RunGitPub -On Demand, Issue -Name GitPub -OutputPath .\.github\workflows\RunGitPub.yml

Pop-Location