Skip to content

Commit 8a74fc8

Browse files
committed
WIP
1 parent 3fdb900 commit 8a74fc8

1 file changed

Lines changed: 9 additions & 5 deletions

File tree

.github/workflows/release.yml

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -280,10 +280,15 @@ jobs:
280280
- name: Publish PowerShell module
281281
shell: pwsh
282282
run: |
283-
Set-PSDebug -Trace 1
283+
dotnet --list-sdks
284+
dotnet nuget --help
285+
dotnet pack --version
284286
285287
$Archive = Get-ChildItem -Recurse -Filter "*-ps-*.zip" -File
286-
Expand-Archive -Path $Archive -DestinationPath 'PowerShell'
288+
Write-Host "Archive = $Archive"
289+
290+
Expand-Archive -Path $Archive -DestinationPath './PowerShell'
291+
Get-ChildItem -Path "./PowerShell" -Recurse
287292
288293
$PublishCmd = @('Publish-Module', '-Force', '-Path', (Join-Path PowerShell DevolutionsGateway), '-NugetApiKey', '${{ secrets.PS_GALLERY_NUGET_API_KEY }}')
289294
@@ -292,12 +297,11 @@ jobs:
292297
$PublishCmd += '-WhatIf'
293298
}
294299
$PublishCmd = $PublishCmd -Join ' '
295-
Write-Host $PublishCmd
300+
Write-Host "PublishCmd = $PublishCmd"
296301
297302
try {
298303
Invoke-Expression $PublishCmd
299-
}
300-
catch {
304+
} catch {
301305
if ($_.Exception.Message -ilike "*cannot be published as the current version*is already available in the repository*") {
302306
echo "::warning::PowerShell module not published; this version is already listed on PSGallery"
303307
} else {

0 commit comments

Comments
 (0)