adding step to build to support auto-release
# Variables:
# 'BuildTargetingString' comma separated glob strings selecting the packages that should be built. EG: "azure-keyvault,azure-mgmt-batch" or "azure-*"
+# 'CandidateForRelease' Boolean indicating whether or not a release should be automatically queued after successful build.
# 'codecov-python-repository-token' Is the codecov.io repository token.
trigger:
@@ -7,6 +8,7 @@ trigger:
variables:
PythonVersion: '3.6'
+ ReleaseTag: 'RELEASE_CANDIDATE'
jobs:
- job: 'Build'
@@ -34,6 +36,10 @@ jobs:
twine check $(Build.ArtifactStagingDirectory)/*
displayName: 'Verify Readme'
+ - script: 'echo "##vso[build.addbuildtag]$(ReleaseTag)"'
+ displayName: 'Tag The Build'
+ condition: eq(variables['CandidateForRelease'], True)
+
- task: PublishBuildArtifacts@1
condition: succeededOrFailed()
displayName: 'Publish Artifacts'
