Skip to content

Commit

Permalink
final changes for release pipeline (#1688)
Browse files Browse the repository at this point in the history
* guess next release tag

* comment out release step

* fix typo

* ready for merging

* add v to title

* minor changes;
  • Loading branch information
epassaro authored Jul 5, 2021
1 parent 513b8f5 commit cc0410e
Showing 1 changed file with 14 additions and 4 deletions.
18 changes: 14 additions & 4 deletions azure-pipelines/release-version.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ jobs:
refdataRepo: 'azure'
useMamba: true

# Test before relase, we do not want to release broken software!
- bash: |
cd $(tardis.dir)
source activate tardis
Expand All @@ -38,8 +39,17 @@ jobs:
- bash: |
cd $(tardis.dir)
source activate tardis
echo "##vso[task.setvariable variable=version]$(python -c 'import tardis; print(tardis.__version__)')"
displayName: 'Get TARDIS version'
echo $(python -c 'from setuptools_scm import version_from_scm; from setuptools_scm.version import guess_next_date_ver; release = version_from_scm("."); print(release.tag.public)')
displayName: 'Check latest TARDIS tag'
- bash: |
cd $(tardis.dir)
source activate tardis
echo "##vso[task.setvariable variable=newtag]$(python -c 'from setuptools_scm import version_from_scm; from setuptools_scm.version import guess_next_date_ver; release = version_from_scm("."); print(guess_next_date_ver(release.tag.public))')"
displayName: 'Get new TARDIS tag'
- bash: echo $(newtag)
displayName: 'Check new TARDIS tag'

- task: GitHubRelease@1
inputs:
Expand All @@ -48,8 +58,8 @@ jobs:
action: 'create'
target: '$(Build.SourceVersion)'
tagSource: 'userSpecifiedTag'
tag: 'release-$(version)'
title: 'TARDIS $(version)'
tag: 'release-$(newtag)'
title: 'TARDIS v$(newtag)'
isPreRelease: false
addChangeLog: true
changeLogCompareToRelease: 'lastFullRelease'
Expand Down

0 comments on commit cc0410e

Please sign in to comment.