Skip to content

Commit

Permalink
feat: WebSocket Workflow ( Fixes #3, Fixes #4 )
Browse files Browse the repository at this point in the history
  • Loading branch information
James Brundage committed Nov 27, 2024
1 parent 86d5fba commit 0e86ae6
Show file tree
Hide file tree
Showing 2 changed files with 49 additions and 0 deletions.
34 changes: 34 additions & 0 deletions Build/GitHub/Jobs/BuildWebSocket.psd1
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
@{
"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'
<#@{
name = 'Run WebSocket (on branch)'
if = '${{github.ref_name != ''main''}}'
uses = './'
id = 'WebSocketAction'
},#>
#'BuildAndPublishContainer'
)
}
15 changes: 15 additions & 0 deletions Build/WebSocket.GitHubWorkflow.PSDevOps.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
#requires -Module PSDevOps
Import-BuildStep -SourcePath (
Join-Path $PSScriptRoot 'GitHub'
) -BuildSystem GitHubWorkflow

Push-Location ($PSScriptRoot | Split-Path)
New-GitHubWorkflow -Name "Build WebSocket Module" -On Push,
PullRequest,
Demand -Job TestPowerShellOnLinux,
TagReleaseAndPublish, BuildWebSocket -Environment ([Ordered]@{
REGISTRY = 'ghcr.io'
IMAGE_NAME = '${{ github.repository }}'
}) -OutputPath .\.github\workflows\BuildWebSocket.yml

Pop-Location

0 comments on commit 0e86ae6

Please sign in to comment.