You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: azure-pipelines/release.yml
+13-6Lines changed: 13 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -11,6 +11,9 @@ parameters:
11
11
- name: test
12
12
type: boolean
13
13
default: true
14
+
- name: uploadPrerelease
15
+
type: boolean
16
+
default: true
14
17
15
18
variables:
16
19
# This is expected to provide VisualStudioMarketplacePAT to the release (https://code.visualstudio.com/api/working-with-extensions/publishing-extension#get-a-personal-access-token)
@@ -44,8 +47,15 @@ stages:
44
47
npm install --global vsce
45
48
displayName: 'Install vsce'
46
49
- pwsh: |
50
+
$artifactFolderPrefix = "VSIX_Release_"
51
+
if ("${{ parameters.uploadPrerelease }}" -eq "true") {
52
+
$artifactFolderPrefix = "VSIX_Prerelease_"
53
+
}
54
+
55
+
Write-Host "Using artifacts from $artifactFolderPrefix"
56
+
47
57
# Our build pipeline would generated build based on attempt number. Publishing the latest attempt.
Write-Host "All artifacts: $($allArtifacts). Publishing $($publishArtifacts)."
55
65
56
66
$basePublishArgs = , "publish"
57
-
# Artifacts are published to either pre-release or release based on the build branch, https://code.visualstudio.com/api/working-with-extensions/publishing-extension#prerelease-extensions
58
-
If ("$(resources.pipeline.officialBuildCI.sourceBranch)" -eq "refs/heads/main") {
67
+
If ("${{ parameters.uploadPrerelease }}" -eq "true") {
0 commit comments