22
22
23
23
# build MDP
24
24
- job : Build_MDP
25
+ condition : not( or( contains(variables['getCommitMessage.COMMIT_MESSAGE'], '***UPDATE_DEPENDENTS***'), eq(variables['UPDATE_DEPENDENTS'], 'true') ) )
25
26
26
27
pool :
27
28
vmImage : ' VS2017-Win2016'
@@ -110,24 +111,16 @@ jobs:
110
111
111
112
# push NuGet packages to Azure Artifacts feed (always happens except on PR builds)
112
113
- task : NuGetCommand@2
114
+ displayName : Push NuGet packages to Azure Artifacts
115
+ condition : and( succeeded(), ne(variables['Build.Reason'], 'PullRequest') )
116
+ continueOnError : true
113
117
inputs :
114
118
command : push
115
119
nuGetFeedType : external
116
120
packagesToPush : ' $(Build.ArtifactStagingDirectory)/*.nupkg'
117
121
publishFeedCredentials : ' AzureArtifacts'
118
122
allowPackageConflicts : true
119
- condition : and( succeeded(), ne(variables['Build.Reason'], 'PullRequest') )
120
- displayName : Push NuGet packages to Azure Artifacts
121
123
122
- # update dependencies
123
- - task : PowerShell@2
124
- inputs :
125
- targetType : filePath
126
- filePath : azure-pipelines/update-dependencies.ps1
127
- env :
128
- MY_GITHUB_TOKEN : $(GitHubToken)
129
- condition : or( and( succeeded(), contains(variables['Build.SourceVersionMessage'], '***UPDATE_DEPENDENTS***') ), eq(variables['UPDATE_DEPENDENTS'], 'true') )
130
- displayName : Update dependent class libs
131
124
132
125
# create or update GitHub release
133
126
- task : GitHubReleasePublish@1
@@ -141,13 +134,37 @@ jobs:
141
134
githubTargetCommitsh : $(Build.SourceVersion)
142
135
githubReleaseDraft : false
143
136
githubReleasePrerelease : false
144
- githubReuseDraftOnly : true
137
+ githubReuseDraftOnly : false
145
138
githubReuseRelease : true
146
139
githubEditRelease : true
147
140
githubReleaseAsset : ' $(Build.ArtifactStagingDirectory)/*.exe'
148
141
condition : and( succeeded(), ne(variables['Build.Reason'], 'PullRequest'), not( startsWith(variables['Build.SourceBranch'], 'refs/tags/v') ) )
149
142
displayName : Create/Update GitHub release
150
143
144
+ # #############################
145
+ - job : Update_Dependents
146
+ condition : or( contains(variables['getCommitMessage.COMMIT_MESSAGE'], '***UPDATE_DEPENDENTS***'), eq(variables['UPDATE_DEPENDENTS'], 'true') )
147
+
148
+ dependsOn :
149
+ - Build_MDP
150
+
151
+ pool :
152
+ vmImage : ' VS2017-Win2016'
153
+
154
+ steps :
155
+ # need this here in order to persist GitHub credentials
156
+ - checkout : self
157
+ fetchDepth : 1
158
+
159
+ # update dependencies
160
+ - task : PowerShell@2
161
+ displayName : Update dependent class libs
162
+ inputs :
163
+ targetType : filePath
164
+ filePath : azure-pipelines/update-dependencies.ps1
165
+ env :
166
+ MY_GITHUB_TOKEN : $(GitHubToken)
167
+
151
168
# #################################
152
169
# report build failure to Discord
153
170
- job : Report_Build_Failure
0 commit comments