From d463ee7bf251e502c285b37aee240d4b877cf3ab Mon Sep 17 00:00:00 2001 From: alexweininger Date: Thu, 5 Sep 2024 11:42:20 -0400 Subject: [PATCH 1/2] azure-pipelines: Add documentation for extension release pipeline template --- azure-pipelines/README.md | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) diff --git a/azure-pipelines/README.md b/azure-pipelines/README.md index 2c8ae39065..d26822cbea 100644 --- a/azure-pipelines/README.md +++ b/azure-pipelines/README.md @@ -96,6 +96,45 @@ extends: ``` +### Extension release pipeline + +This pipeline only downloads and releases signed VSIX artifacts from the specified build pipeline. + +The build pipeline needs to upload the following artifacts for this pipeline to work: +1. extension.vsix +2. package.json (needed to verify the extension name and version when publishing) +3. extension.manifest (created with `vsce generate-manifest`) +4. extension.signature.p7s (result of signing the manifest) + +Use and modify the following YAML file to use the extension release pipeline template. Make sure to replace the `source` field with the name of the pipeline that produces the artifacts you want to release. + +```yaml +trigger: none # Only run this pipeline when manually triggered + +resources: + pipelines: + - pipeline: build # identifier to use in pipeline resource variables + source: \Azure Tools\VSCode\Extensions\vscode-azurecontainerapps # name of the pipeline that produces the artifacts REPLACE THIS WITH YOUR PIPELINE NAME + repositories: + - repository: azExtTemplates + type: github + name: microsoft/vscode-azuretools + ref: alex/release-template + endpoint: GitHub-AzureTools # The service connection to use when accessing this repository + +variables: + # Required by MicroBuild template + - name: TeamName + value: "Azure Tools for VS Code" + +# Use those templates +extends: + template: azure-pipelines/release-extension.yml@azExtTemplates + parameters: + pipelineID: $(resources.pipeline.build.pipelineID) + runID: $(resources.pipeline.build.runID) +``` + ### (DEPRECATED) Primary pipelines To use these base pipeline templates: From 16a7c4955cc9150078175799f0fe168ef6f28602 Mon Sep 17 00:00:00 2001 From: alexweininger Date: Thu, 5 Sep 2024 11:44:20 -0400 Subject: [PATCH 2/2] azure-pipelines: Add documentation for extension release pipeline template --- azure-pipelines/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/azure-pipelines/README.md b/azure-pipelines/README.md index d26822cbea..ea2b7a7b83 100644 --- a/azure-pipelines/README.md +++ b/azure-pipelines/README.md @@ -101,7 +101,7 @@ extends: This pipeline only downloads and releases signed VSIX artifacts from the specified build pipeline. The build pipeline needs to upload the following artifacts for this pipeline to work: -1. extension.vsix +1. extension.vsix (name can vary, pipeline looks for a single *.vsix file) 2. package.json (needed to verify the extension name and version when publishing) 3. extension.manifest (created with `vsce generate-manifest`) 4. extension.signature.p7s (result of signing the manifest)