diff --git a/Build/Emoji.GitHubWorkflow.PSDevOps.ps1 b/Build/Emoji.GitHubWorkflow.PSDevOps.ps1 new file mode 100644 index 0000000..688d9da --- /dev/null +++ b/Build/Emoji.GitHubWorkflow.PSDevOps.ps1 @@ -0,0 +1,13 @@ +#requires -Module PSDevOps +Import-BuildStep -SourcePath ( + Join-Path $PSScriptRoot 'GitHub' +) -BuildSystem GitHubWorkflow + +Push-Location ($PSScriptRoot | Split-Path) +New-GitHubWorkflow -Name "Build Emoji" -On Push, + PullRequest, + Demand -Job PowerShellStaticAnalysis, + TestPowerShellOnLinux, + TagReleaseAndPublish, BuildEmoji -OutputPath .\.github\workflows\BuildEmoji.yml + +Pop-Location \ No newline at end of file diff --git a/Build/GitHub/Jobs/BuildEmoji.psd1 b/Build/GitHub/Jobs/BuildEmoji.psd1 new file mode 100644 index 0000000..55b5986 --- /dev/null +++ b/Build/GitHub/Jobs/BuildEmoji.psd1 @@ -0,0 +1,27 @@ +@{ + "runs-on" = "ubuntu-latest" + if = '${{ success() }}' + steps = @( + @{ + name = 'Check out repository' + uses = 'actions/checkout@v2' + }, + @{ + name = 'GitLogger' + uses = 'GitLogging/GitLoggerAction@main' + id = 'GitLogger' + }, + @{ + name = 'Use PSSVG Action' + uses = 'StartAutomating/PSSVG@main' + id = 'PSSVG' + }, + @{ + name = 'Use PipeScript Action' + uses = 'StartAutomating/PipeScript@main' + id = 'PipeScript' + } + 'RunEZOut', + 'RunHelpOut' + ) +} \ No newline at end of file