Skip to content

Commit b0b245d

Browse files
committed
Use windows-latest pool and NuGetCommand task for package publishing
Update azure-pipelines.yml for Azure Pipelines
1 parent fc6fe88 commit b0b245d

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

azure-pipelines.yml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
trigger:
22
- master
33

4-
pool:
5-
vmImage: 'macOS-latest'
6-
74
variables:
85
buildConfiguration: 'Release'
96

107
stages:
118
- stage: test
129

10+
pool:
11+
vmImage: 'macOS-latest'
12+
1313
jobs:
1414
- job: sonar
1515
displayName: Analyze code with SonarQube
@@ -165,6 +165,10 @@ stages:
165165

166166
- stage: deploy
167167
condition: and(succeeded(), eq(variables['Build.SourceBranch'], 'refs/heads/master'))
168+
169+
pool:
170+
vmImage: 'windows-latest'
171+
168172
jobs:
169173
- job: release
170174
displayName: 'Create tag on GitHub and publish NuGet package'
@@ -203,7 +207,7 @@ stages:
203207
changeLogCompareToRelease: 'lastFullRelease'
204208
changeLogType: 'commitBased'
205209

206-
- task: DotNetCoreCLI@2
210+
- task: NuGetCommand@2
207211
displayName: 'Push NuGet package'
208212
inputs:
209213
command: 'push'

0 commit comments

Comments
 (0)