microsoft/vscode-react-native
Publicmirrored fromhttps://github.com/microsoft/vscode-react-nativeAvailable
.ci/test-signed-build.yml
56lines · modecode
| 1 | trigger: none |
| 2 | |
| 3 | name: $(date:yyyyMMdd)$(rev:.r) |
| 4 | |
| 5 | resources: |
| 6 | repositories: |
| 7 | - repository: 1ESPipelineTemplates |
| 8 | type: git |
| 9 | name: 1ESPipelineTemplates/1ESPipelineTemplates |
| 10 | ref: refs/tags/release |
| 11 | |
| 12 | extends: # Extend the template in your YAML |
| 13 | template: v1/1ES.Official.PipelineTemplate.yml@1ESPipelineTemplates |
| 14 | parameters: |
| 15 | pool: # This example is for Windows, but Mac/Linux are also supported. |
| 16 | name: VSEngSS-MicroBuild2022-1ES |
| 17 | demands: |
| 18 | - msbuild |
| 19 | - visualstudio |
| 20 | os: windows |
| 21 | stages: |
| 22 | - stage: stage |
| 23 | jobs: |
| 24 | - job: job |
| 25 | templateContext: |
| 26 | mb: # Enable the MicroBuild Signing toolset |
| 27 | signing: |
| 28 | enabled: true |
| 29 | signType: real # options are 'real' & 'test' |
| 30 | zipSources: false |
| 31 | outputs: # Build artifacts are declared in outputs when using the template |
| 32 | - output: pipelineArtifact |
| 33 | displayName: 'Publish Drop Artifact' |
| 34 | targetPath: '$(Build.StagingDirectory)\drop' |
| 35 | steps: |
| 36 | - task: NodeTool@0 |
| 37 | inputs: |
| 38 | versionSpec: '20.x' |
| 39 | |
| 40 | - script: npx @vscode/vsce@latest package -o $(Build.ArtifactStagingDirectory)/extension.vsix |
| 41 | displayName: 'Package extension' |
| 42 | workingDirectory: samples\extension-signing |
| 43 | |
| 44 | - script: npx @vscode/vsce@latest generate-manifest -i $(Build.ArtifactStagingDirectory)/extension.vsix -o $(Build.ArtifactStagingDirectory)/extension.manifest |
| 45 | displayName: 'Generate extension manifest' |
| 46 | workingDirectory: samples\extension-signing |
| 47 | |
| 48 | - script: cp $(Build.ArtifactStagingDirectory)/extension.manifest $(Build.ArtifactStagingDirectory)/extension.signature.p7s |
| 49 | displayName: 'Prepare manifest for signing' |
| 50 | workingDirectory: samples\extension-signing |
| 51 | |
| 52 | # Add signing step here (details in following sections) |
| 53 | |
| 54 | - script: npx @vscode/vsce@latest publish -i $(Build.ArtifactStagingDirectory)/extension.vsix --manifestPath $(Build.ArtifactStagingDirectory)/extension.manifest --signaturePath $(Build.ArtifactStagingDirectory)/extension.signature.p7s |
| 55 | displayName: 'Publish extension' |
| 56 | workingDirectory: samples\extension-signing |