We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8ffa087 commit 7a3c631Copy full SHA for 7a3c631
vscode-powershell.build.ps1
@@ -9,6 +9,11 @@ param(
9
10
#Requires -Modules @{ModuleName="InvokeBuild";ModuleVersion="3.0.0"}
11
12
+$script:IsPullRequestBuild =
13
+ $env:APPVEYOR_PULL_REQUEST_NUMBER -and $env:APPVEYOR_REPO_BRANCH -eq "develop"
14
+
15
+Write-Host "IS PR: $script:IsPullRequestBuild // PR: $($env:APPVEYOR_PULL_REQUEST_NUMBER), BRANCH: $($env:APPVEYOR_REPO_BRANCH)"
16
17
task GetExtensionVersion -Before Package {
18
$updateVersion = $false
19
$script:ExtensionVersion = `
@@ -89,7 +94,7 @@ task Package {
89
94
exec { & node ./node_modules/vsce/out/vsce package }
90
95
}
91
96
92
-task UploadArtifacts -If { $env:AppVeyor } {
97
+task UploadArtifacts -If { $env:AppVeyor -and $script:IsPullRequestBuild -and $env:APPVEYOR_REPO_BRANCH } {
93
98
Push-AppveyorArtifact .\PowerShell-$($script:ExtensionVersion).vsix
99
100
0 commit comments