@@ -13,13 +13,7 @@ steps:
1313 eq(variables['ForceUpload'], true),
1414 and(
1515 succeeded(),
16- eq(variables['System.PullRequest.PullRequestId'], ''),
17- or(
18- startswith(variables['Build.SourceBranchName'], 'develop'),
19- eq(variables['Build.SourceBranchName'], 'main'),
20- eq(variables['Build.SourceBranchName'], ''),
21- contains(variables['Build.SourceBranchName'], 'release')
22- )
16+ eq(variables['System.PullRequest.PullRequestId'], '')
2317 )
2418 )
2519 displayName : Set Cloudsmith repo path
4539 # this main branch, publish to Cloudsmith stable repo
4640 Write-Host "$("##vso[task.setvariable variable=CLOUDSMITH_REPO]")nanoframework-images"
4741 # set version
48- Write-Host "$("##vso[task.setvariable variable=PACKAGE_VERSION]")$(NBGV_AssemblyVersion )"
42+ Write-Host "$("##vso[task.setvariable variable=PACKAGE_VERSION]")$(NBGV_SimpleVersion).$(TARGET_BUILD_COUNTER )"
4943 }
5044 errorActionPreference : ' stop'
5145 failOnStderr : ' true'
@@ -56,13 +50,7 @@ steps:
5650 eq(variables['ForceUpload'], true),
5751 and(
5852 succeeded(),
59- eq(variables['System.PullRequest.PullRequestId'], ''),
60- or(
61- startswith(variables['Build.SourceBranchName'], 'develop'),
62- eq(variables['Build.SourceBranchName'], 'main'),
63- eq(variables['Build.SourceBranchName'], ''),
64- contains(variables['Build.SourceBranchName'], 'release')
65- )
53+ eq(variables['System.PullRequest.PullRequestId'], '')
6654 )
6755 )
6856 displayName : Upload WIN32 nanoCLR to Cloudsmith
7159 script : |
7260
7361 # install Cloudsmith CLI
74- python -m pip install --upgrade cloudsmith-cli
62+ python -m pip install --upgrade cloudsmith-cli --quiet
7563
76- Write-Host "Uploading nanoFramework.nanoCLR.exe v$(PACKAGE_VERSION)"
64+ Write-Host "Uploading nanoFramework.nanoCLR.exe to v$(PACKAGE_VERSION)"
7765
7866 cloudsmith push raw net-nanoframework/$(CLOUDSMITH_REPO) $(Build.ArtifactStagingDirectory)\$(TargetPublishName)\nanoFramework.nanoCLR.exe --name $(TargetPublishName) --version $(PACKAGE_VERSION) -k $(CLOUDSMITH_KEY)
7967
0 commit comments