Skip to content

Commit c7dffc2

Browse files
committed
Update azure-pipelines.yml for Azure Pipelines
1 parent 1f6c06a commit c7dffc2

File tree

1 file changed

+19
-11
lines changed

1 file changed

+19
-11
lines changed

azure-pipelines.yml

Lines changed: 19 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ trigger:
77
exclude:
88
- '*/README.md'
99

10+
pr: none
11+
1012

1113
pool:
1214
vmImage: 'windows-latest'
@@ -73,7 +75,7 @@ jobs:
7375
testRunTitle: 'Project Unit Tests'
7476
workingDirectory: '$(System.DefaultWorkingDirectory)'
7577

76-
- deployment: PushArtifacts
78+
- deployment: PushToTestFeed
7779
displayName: Push to Development Feed
7880
dependsOn:
7981
- BuildPack
@@ -95,14 +97,20 @@ jobs:
9597
publishVstsFeed: 'f9036ec9-eb1c-4aff-a2b8-27fdaa573d0f/29b705d0-eac8-42a7-9230-4bcfe9f83688'
9698
allowPackageConflicts: true
9799

98-
- task: DownloadFile@1
99-
displayName: 'Download version bump script'
100-
inputs:
101-
FileUrl: 'https://gist.githubusercontent.com/jooni91/d3e5ca575402eb3454dd1c1a4a4d998e/raw/d13c90d62ad0d614df9c5129c47a51c19e9460cb/update-patch-version-code-script.ps1'
100+
- job: BumpPatch
101+
displayName: Bump the version patch
102+
dependsOn:
103+
- PushToTestFeed
104+
condition: and(succeeded(), eq(variables['Build.SOurceBranch'], 'refs/heads/master'))
105+
steps:
106+
- task: DownloadFile@1
107+
displayName: 'Download version bump script'
108+
inputs:
109+
FileUrl: 'https://gist.githubusercontent.com/jooni91/d3e5ca575402eb3454dd1c1a4a4d998e/raw/d13c90d62ad0d614df9c5129c47a51c19e9460cb/update-patch-version-code-script.ps1'
102110

103-
- task: PowerShell@2
104-
displayName: 'Run version bump script'
105-
inputs:
106-
targetType: filePath
107-
filePath: './update-patch-version-code-script.ps1'
108-
arguments: '$(System.AccessToken)'
111+
- task: PowerShell@2
112+
displayName: 'Run version bump script'
113+
inputs:
114+
targetType: filePath
115+
filePath: './update-patch-version-code-script.ps1'
116+
arguments: '$(System.AccessToken)'

0 commit comments

Comments
 (0)