Skip to content

Commit

Permalink
chore: Update pipeline with more output
Browse files Browse the repository at this point in the history
  • Loading branch information
kekonn committed Mar 21, 2024
1 parent f941549 commit 1621f51
Showing 1 changed file with 11 additions and 6 deletions.
17 changes: 11 additions & 6 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ jobs:
"versionManifest='$($versionManifest | ConvertTo-Json)'" | Out-File -FilePath $env:GITHUB_OUTPUT -Append
$summary = "### Version manifest `r`n" + '```json' + "`r`n" + $versionManifest + "`r`n" + '````'
$summary | Out-File -FilePath $env:GITHUB_STEP_SUMMARY -Append
build-release:
needs:
- plan
Expand All @@ -49,9 +50,10 @@ jobs:
shell: pwsh
run: |
Import-Module -Force .\Build-Functions.psm1
Write-Output "::debug::Package lock file location"
Get-LockFiles | ForEach-Object { Write-Output "::debug::\t- $_"}
Write-Output "::debug::Working directory: $(pwd)"
"Package lock file locations:`r`n" | Out-File -FilePath $env:GITHUB_STEP_SUMMARY -Append
Get-LockFiles | ForEach-Object { "`t- $_`r`n" | Out-File -FilePath $env:GITHUB_STEP_SUMMARY -Append }
"`r`n" | Out-File -FilePath $env:GITHUB_STEP_SUMMARY -Append
"Working directory: $(pwd)" | Out-File -FilePath $env:GITHUB_STEP_SUMMARY -Append
- uses: actions/setup-dotnet@v4
name: Setup dotnet cli
with:
Expand All @@ -69,15 +71,18 @@ jobs:
Write-Output "::debug::Encoded version manifest: $env:VERSION_MANIFEST"
$versionManifest = $env:VERSION_MANIFEST | ConvertFrom-Json
Write-Output "::debug::Decoded version manifest: $versionManifest"
$versionManifest = ConvertFrom-Json -InputObject $versionManifest -AsHashTable
$versionManifest = $versionManifest | ConvertFrom-Json -AsHashTable
foreach ($app in $versionManifest.GetEnumerator()) {
$packageVersion = $app.Value.SemVer
Write-Output "::debug::Building package " + $app.Key + " with version " + $packageVersion
& dotnet build --no-restore $app.Value.Root -c Release --os ${{ matrix.os }} --no-self-contained `
"Build output for package ${app.Key} with version $packageVersion:`r`n" + '```' | Out-File -FilePath $env:GITHUB_STEP_SUMMARY -Append
dotnet build --no-restore $app.Value.Root -c Release --os ${{ matrix.os }} --no-self-contained `
-p:PackageRequireLicenseAcceptance=true `
-p:PackageLicenseFile=LICENSE `
-p:Version=$packageVersion `
-p:PackageProjectUrl=$env:REPO_URL `
-p:RepositoryUrl=$env:REPO_URL
-p:RepositoryUrl=$env:REPO_URL `
| Out-File -FilePath $env:GITHUB_STEP_SUMMARY -Append
'```' | Out-File -FilePath $env:GITHUB_STEP_SUMMARY -Append
}

0 comments on commit 1621f51

Please sign in to comment.