Skip to content

Commit 28fc2f7

Browse files
authored
Merge pull request #5941 from Cosifne/dev/shech/filterOutUniveralVsix
Only publish platform related vsix in release pipeline
2 parents 170570a + e054ae8 commit 28fc2f7

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

azure-pipelines/release.yml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,9 +52,17 @@ jobs:
5252
} Else {
5353
throw "Unexpected branch name: ${{ parameters.branch }}."
5454
}
55-
5655
$additionalPublishArgs += '--packagePath'
57-
$additionalPublishArgs += Get-ChildItem $publishArtifacts *.vsix
56+
57+
$platforms = "arm64", "x64", "ia32"
58+
$allVsixs = Get-ChildItem $publishArtifacts *.vsix
59+
foreach ($vsix in $allVsixs) {
60+
foreach ($plat in $platforms) {
61+
if ($vsix.Name.Contains($plat)) {
62+
$additionalPublishArgs += $vsix
63+
}
64+
}
65+
}
5866
5967
Write-Host "Command run is: vsce $($additionalPublishArgs)."
6068
If ("${{ parameters.test }}" -eq "true") {

0 commit comments

Comments
 (0)