GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Update path variables · PowerShell/PowerShellGet@34a6a7a

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • .pipelines
    • PowerShellGet-Official.yml
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎.pipelines/PowerShellGet-Official.yml‎

Copy file name to clipboardExpand all lines: .pipelines/PowerShellGet-Official.yml
+18-14Lines changed: 18 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ extends:
7474
- name: ob_sdl_tsa_configFile
7575
value: $(Build.SourcesDirectory)\PowerShellGet\.config\tsaoptions.json
7676
- name: signSrcPath
77-
value: $(repoRoot)/out
77+
value: $(repoRoot)/out/PowerShellGet
7878
- name: ob_sdl_sbom_enabled
7979
value: true
8080
- name: ob_signing_setup_enabled
@@ -163,6 +163,10 @@ extends:
163163
value: false
164164
- name: signOutPath
165165
value: $(repoRoot)/signed
166+
- name: signedModuleRoot
167+
value: $(signOutPath)/PowerShellGet
168+
- name: signedNupkgPath
169+
value: $(signOutPath)/PublishedNupkg
166170
- name: ob_signing_setup_enabled
167171
value: true
168172
# This job is not compiling code, so disable codeQL
@@ -184,13 +188,13 @@ extends:
184188
- task: DownloadPipelineArtifact@2
185189
displayName: 'Download build files'
186190
inputs:
187-
targetPath: $(signOutPath)
191+
targetPath: $(signedModuleRoot)
188192
artifact: drop_stagebuild_jobbuild
189193

190194
- pwsh: |
191-
Set-Location "$(signOutPath)"
192-
Write-Host "Contents of signOutPath:"
193-
Get-ChildItem $(signOutPath) -Recurse
195+
Set-Location "$(signedModuleRoot)"
196+
Write-Host "Contents of signedModuleRoot:"
197+
Get-ChildItem $(signedModuleRoot) -Recurse
194198
displayName: Capture artifacts directory structure
195199
196200
- pwsh: |
@@ -201,10 +205,10 @@ extends:
201205
displayName: Install PSResourceGet 0.9.0 or above for build.psm1
202206
203207
- pwsh: |
204-
Set-Location "$(signOutPath)\PowerShellGet"
205-
New-Item -ItemType Directory -Path "$(signOutPath)\PublishedNupkg" -Force
206-
Register-PSResourceRepository -Name 'localRepo' -Uri "$(signOutPath)\PublishedNupkg"
207-
Publish-PSResource -Path "$(signOutPath)\PowerShellGet" -Repository 'localRepo' -Verbose
208+
Set-Location "$(signOutPath)"
209+
New-Item -ItemType Directory -Path "$(signedNupkgPath)" -Force
210+
Register-PSResourceRepository -Name 'localRepo' -Uri "$(signedNupkgPath)"
211+
Publish-PSResource -Path "$(signedModuleRoot)" -Repository 'localRepo' -Verbose
208212
displayName: Create nupkg for publishing
209213
210214
- task: onebranch.pipeline.signing@1
@@ -213,18 +217,18 @@ extends:
213217
command: 'sign'
214218
signing_profile: external_distribution
215219
files_to_sign: '**\*.nupkg'
216-
search_root: "$(signOutPath)\PublishedNupkg"
220+
search_root: "$(signedNupkgPath)"
217221

218222
- pwsh: |
219-
Set-Location "$(signOutPath)\PublishedNupkg"
220-
Write-Host "Contents of signOutPath:"
221-
Get-ChildItem "$(signOutPath)" -Recurse
223+
Set-Location "$(signedNupkgPath)"
224+
Write-Host "Contents of signedNupkgPath:"
225+
Get-ChildItem "$(signedNupkgPath)" -Recurse
222226
displayName: Find Nupkg
223227
224228
- task: CopyFiles@2
225229
displayName: "Copy nupkg to ob_outputDirectory - '$(ob_outputDirectory)'"
226230
inputs:
227-
Contents: $(signOutPath)\PublishedNupkg\PowerShellGet.*.nupkg
231+
Contents: $(signedNupkgPath)\PowerShellGet.*.nupkg
228232
TargetFolder: $(ob_outputDirectory)
229233

230234
- pwsh: |

0 commit comments

Comments
0 (0)
You are visitor 01402520 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.