Skip to content

Commit

Permalink
Setup VSIX signing
Browse files Browse the repository at this point in the history
  • Loading branch information
andyleejordan committed Sep 18, 2024
1 parent 58b88ee commit c58ac4d
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion .pipelines/vscode-powershell-Official.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ extends:
EnableCDPxPAT: false
WindowsHostVersion:
Version: 2022
Network: Netlock
Network: KS3
stages:
- stage: build
jobs:
Expand Down Expand Up @@ -112,6 +112,18 @@ extends:
files_to_sign: '**/*.ps1;**/*.psd1;**/*.psm1'
- pwsh: Invoke-Build Package
displayName: Create package
- pwsh: |
npx vsce generate-manifest --packagePath out/powershell-$(package.version).vsix
cp out/powershell-$(package.version).manifest out/powershell-$(package.version).signature.p7s
displayName: Generate VSIX manifest
- task: onebranch.pipeline.signing@1
displayName: Sign VSIX manifest
inputs:
command: sign
cp_code: 'CP-401405-VSCodePublisherSign'
search_root: $(Build.SourcesDirectory)/out
files_to_sign: |
*.signature.p7s;
- job: test
displayName: Build and run tests
pool:
Expand Down Expand Up @@ -219,6 +231,10 @@ extends:
'--azure-credential'
'--packagePath'
'$(drop)/powershell-$(vsixVersion).vsix'
'--manifestPath'
'$(drop)/powershell-$(vsixVersion).manifest'
'--signaturePath'
'$(drop)/powershell-$(vsixVersion).signature.p7s'
if ([bool]::Parse('$(prerelease)')) { '--pre-release' }
)
npm run publish -- @publishArgs

0 comments on commit c58ac4d

Please sign in to comment.