Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sign extension #5040

Merged
merged 1 commit into from
Sep 25, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions .pipelines/vscode-powershell-Official.yml
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,18 @@ extends:
files_to_sign: '**/*.ps1;**/*.psd1;**/*.psm1'
- pwsh: Invoke-Build Package
displayName: Create package
- pwsh: |
npx vsce generate-manifest --packagePath out/powershell-$(package.vsixVersion).vsix
cp out/powershell-$(package.vsixVersion).manifest out/powershell-$(package.vsixVersion).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 @@ -220,6 +232,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