Skip to content

Commit e31239d

Browse files
Akos KittaChristian Weichel
Akos Kitta
authored and
Christian Weichel
committed
Build the app iff the build was manual/scheduled
Signed-off-by: Akos Kitta <kittaakos@typefox.io>
1 parent 6f584bf commit e31239d

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

azure-pipelines.yml

+5-2
Original file line numberDiff line numberDiff line change
@@ -31,26 +31,29 @@ jobs:
3131
versionSpec: '10.x'
3232
displayName: '[Config] Use - Node.js 10.x'
3333
- script: yarn
34-
displayName: Build
3534
env:
3635
GITHUB_TOKEN: $(Personal.GitHub.Token)
36+
displayName: Build
3737
- bash: |
3838
yarn --cwd ./electron/packager/
3939
yarn --cwd ./electron/packager/ package
40-
displayName: Package
4140
env:
4241
GITHUB_TOKEN: $(Personal.GitHub.Token)
4342
RELEASE_TAG: $(Release.Tag)
43+
condition: in(variables['Build.Reason'], 'Manual', 'Schedule')
44+
displayName: Package
4445
- bash: |
4546
export ARDUINO_POC_NAME=$(./electron/packager/cli name)
4647
echo "##vso[task.setvariable variable=ArduinoPoC.AppName]$ARDUINO_POC_NAME"
4748
env:
4849
RELEASE_TAG: $(Release.Tag)
50+
condition: in(variables['Build.Reason'], 'Manual', 'Schedule')
4951
displayName: '[Config] Use - ARDUINO_POC_NAME env'
5052
- task: PublishBuildArtifacts@1
5153
inputs:
5254
pathtoPublish: electron/build/dist/$(ArduinoPoC.AppName)
5355
artifactName: 'Arduino-PoC - Applications'
56+
condition: in(variables['Build.Reason'], 'Manual', 'Schedule')
5457
displayName: Publish
5558
- job: Release
5659
pool:

0 commit comments

Comments
 (0)