Skip to content

Commit 4ebddcd

Browse files
committed
WIP
1 parent 6ee41f5 commit 4ebddcd

2 files changed

Lines changed: 25 additions & 4 deletions

File tree

.github/workflows/package.yml

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,8 @@ jobs:
7474
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
7575
CI_RUN: ${{ steps.get-run.outputs.run }}
7676
run: |
77+
Set-PSDebug -Trace 1
78+
7779
$Ref = '${{ inputs.ref }}'
7880
if (-Not $Ref) {
7981
$Run = gh api /repos/$Env:GITHUB_REPOSITORY/actions/runs/$Env:CI_RUN | ConvertFrom-Json
@@ -225,6 +227,8 @@ jobs:
225227
if: matrix.os == 'windows' && matrix.project == 'devolutions-gateway'
226228
shell: pwsh
227229
run: |
230+
Set-PSDebug -Trace 1
231+
228232
. .\ci\PSModuleHelpers.ps1
229233
$PSModuleOutputPath = Join-Path ${{ runner.temp }} ${{ matrix.project }} "PowerShell"
230234
$PSModuleZipFilePath = Get-ChildItem -Path $PSModuleOutputPath "DevolutionsGateway-ps-*.zip" | Select-Object -First 1
@@ -245,13 +249,10 @@ jobs:
245249
}
246250
247251
Remove-Item $PSModuleZipFilePath -ErrorAction SilentlyContinue | Out-Null
252+
Compress-Archive -Path $DGatewayPSModulePath -Destination $PSModuleZipFilePath -CompressionLevel Optimal
248253
249254
$PSModuleParentPath = Split-Path $DGatewayPSModulePath -Parent
250255
251-
Push-Location $PSModuleParentPath
252-
Compress-Archive -Path $DGatewayPSModulePath -Destination $PSModuleZipFilePath -CompressionLevel Optimal
253-
Pop-Location
254-
255256
New-ModulePackage $DGatewayPSModulePath $PSModuleParentPath
256257
257258
- name: Sign executables
@@ -637,6 +638,8 @@ jobs:
637638
shell: pwsh
638639
working-directory: jetsocat/nuget
639640
run: |
641+
Set-PSDebug -Trace 1
642+
640643
$Version = '${{ github.event.inputs.jetsocat-nuget-version }}'
641644
if ([string]::IsNullOrWhitespace($Version)) {
642645
$Version = Get-Date -Format "yyyy.M.d"
@@ -652,6 +655,8 @@ jobs:
652655
shell: pwsh
653656
working-directory: jetsocat/nuget
654657
run: |
658+
Set-PSDebug -Trace 1
659+
655660
Install-Module -Name ZipIt -Force
656661
& 'nuget' 'pack' 'Devolutions.Jetsocat.nuspec'
657662
$NugetPackage = (Get-Item ".\*.nupkg" | Select-Object -First 1) | Resolve-Path -Relative

.github/workflows/release.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,8 @@ jobs:
8484
env:
8585
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
8686
run: |
87+
Set-PSDebug -Trace 1
88+
8789
$Output = (gh release list --repo $Env:GITHUB_REPOSITORY) | Out-String
8890
$Releases = ( $Output -split '\r?\n' ).Trim()
8991
$Versions = ForEach($Release in $Releases) {
@@ -140,6 +142,8 @@ jobs:
140142
id: prepare-artifacts
141143
shell: pwsh
142144
run: |
145+
Set-PSDebug -Trace 1
146+
143147
$PkgDir = Join-Path docker $Env:RUNNER_OS # RUNNER_OS is camelcase
144148
echo "package-path=$PkgDir" >> $Env:GITHUB_OUTPUT
145149
@@ -183,6 +187,8 @@ jobs:
183187
shell: pwsh
184188
working-directory: ${{ steps.prepare-artifacts.outputs.package-path }}
185189
run: |
190+
Set-PSDebug -Trace 1
191+
186192
$ImageName = "devolutions/devolutions-gateway:${{ needs.preflight.outputs.version }}-${{ matrix.base-image }}"
187193
if ("${{ matrix.base-image }}" -Eq "lts-nanoserver-ltsc2022") {
188194
docker build --build-arg FROM_IMAGE=mcr.microsoft.com/powershell:lts-nanoserver-ltsc2022 -t "$ImageName" .
@@ -196,6 +202,8 @@ jobs:
196202
shell: pwsh
197203
working-directory: ${{ steps.prepare-artifacts.outputs.package-path }}
198204
run: |
205+
Set-PSDebug -Trace 1
206+
199207
echo ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }} | docker login -u devolutionsbot --password-stdin
200208
$DockerPushCmd = 'docker push ${{ steps.build-container.outputs.image-name }}'
201209
Write-Host $DockerPushCmd
@@ -237,6 +245,8 @@ jobs:
237245
env:
238246
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
239247
run: |
248+
Set-PSDebug -Trace 1
249+
240250
$Version = "${{ needs.preflight.outputs.version }}"
241251
$HashPath = 'checksums'
242252
$Files = Get-ChildItem -Recurse -File -Exclude 'CHANGELOG.md', '*.dll' | % { Get-FileHash -Algorithm SHA256 $_.FullName }
@@ -283,6 +293,8 @@ jobs:
283293
- name: Publish PowerShell module
284294
shell: pwsh
285295
run: |
296+
Set-PSDebug -Trace 1
297+
286298
$Archive = Get-ChildItem -Recurse -Filter "*-ps-*.zip" -File
287299
Expand-Archive -Path $Archive -DestinationPath 'PowerShell'
288300
@@ -340,6 +352,8 @@ jobs:
340352
id: prepare
341353
shell: pwsh
342354
run: |
355+
Set-PSDebug -Trace 1
356+
343357
$destinationFolder = "${{ runner.temp }}/artifacts"
344358
$version="${{ needs.preflight.outputs.version }}"
345359
# Note that ".0" is appended here (required by release tooling downstream)
@@ -399,6 +413,8 @@ jobs:
399413
id: prepare
400414
shell: pwsh
401415
run: |
416+
Set-PSDebug -Trace 1
417+
402418
$destinationFolder = "${{ runner.temp }}/artifacts"
403419
$version="${{ needs.preflight.outputs.version }}"
404420
# Note that ".0" is appended here (required by release tooling downstream)

0 commit comments

Comments
 (0)