Skip to content

Commit

Permalink
CI++
Browse files Browse the repository at this point in the history
  • Loading branch information
Chris Hunt committed Dec 14, 2023
1 parent 2eb571a commit 78def8b
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .github/workflows/powershell.yml
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,8 @@ jobs:
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Download build output
uses: actions/download-artifact@v3
Expand Down
10 changes: 9 additions & 1 deletion build.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -77,13 +77,18 @@ function Clean {
}
}

function Build {
function Dependencies {
param ()

if ($null -eq (Get-Module -Name 'powershell-yaml' -ListAvailable)) {
Install-Module 'powershell-yaml' -Scope CurrentUser -Confirm:$false -Force
}

}

function Build {
param ()

New-Item -Path $publish -ItemType Directory -ErrorAction SilentlyContinue | Out-Null

dotnet publish $csproj -o $lib
Expand Down Expand Up @@ -199,15 +204,18 @@ switch ($Task) {
Build
}
{ $_ -contains 'test' } {
Dependencies
Test
}
{ $_ -contains 'changelog' } {
ChangeLog
}
{ $_ -contains 'publish' } {
Dependencies
Publish
}
{ $_ -contains 'docs' } {
Dependencies
Docs
}
Default {
Expand Down

0 comments on commit 78def8b

Please sign in to comment.