Skip to content

Commit

Permalink
Add git tagging to deploy.sh (#4848)
Browse files Browse the repository at this point in the history
  • Loading branch information
tpoterba authored and danking committed Nov 29, 2018
1 parent 35b0977 commit 82d3af9
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
7 changes: 5 additions & 2 deletions hail/build.gradle
Expand Up @@ -35,9 +35,12 @@ buildScan {
// - hail short version: MAJOR.MINOR
// - hail pip version: MAJOR.MINOR.PATCH
// - hail version: MAJOR.MINOR.PATCH-GIT_SHA, calculated by generateBuildInfo
String hailShortVersion = "0.2"
String MAJOR = 0
String MINOR = 2
String PATCH = 4
String hailShortVersion = MAJOR.toString() + "." + MINOR.toString()
// By default pip hides versions ending in ".devN". Use these for testing.
String hailPipVersion = hailShortVersion + ".4" + System.getProperty("hail.pip-version-suffix", "")
String hailPipVersion = hailShortVersion + "." + PATCH + System.getProperty("hail.pip-version-suffix", "")
String[] deployedSparkVersions = new File("deployed-spark-versions.txt").readLines()

String sparkVersion = System.getProperty("spark.version", "2.2.0")
Expand Down
3 changes: 3 additions & 0 deletions hail/python/deploy.sh
Expand Up @@ -40,6 +40,9 @@ then
twine upload dist/*
set -x
fi

git tag ${current} -m "Hail version ${current}"
git push https://github.com/hail-is/hail.git ${current}
else
echo nothing to do ${published} == ${current}
fi
1 change: 1 addition & 0 deletions hail/python/setup.py
Expand Up @@ -13,6 +13,7 @@
version=hail_pip_version,
author="Hail Team",
author_email="hail-team@broadinstitute.org",
description="Scalable library for exploring and analyzing genomic data.",
long_description=long_description,
long_description_content_type="text/markdown",
url="https://hail.is",
Expand Down

0 comments on commit 82d3af9

Please sign in to comment.