Skip to content

Commit

Permalink
Fix publish version determination
Browse files Browse the repository at this point in the history
  • Loading branch information
avirshup committed Nov 29, 2017
1 parent 1326783 commit 70c794b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions deployment/publish.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@
# fail immediately if any command fails:
set -e

echo "Now deploying moldesign-${pyversion}"
echo "Now deploying moldesign-${CI_BRANCH}"

# Copy python package out of the docker image
sdist=moldesign-${pyversion}.tar.gz
sdist=moldesign-${CI_BRANCH}.tar.gz
docker run -v ${PWD}/tmp/dist:/hostdists moldesign_py_build:dev cp dist/${sdist} /hostdists

# Push images to dockerhub
Expand All @@ -26,4 +26,4 @@ done

# Push python package to PyPI
echo "Uploading version ${CI_BRANCH} to PyPI:"
twine upload -u ${PYPI_USER} -p ${PYPI_PASSWORD} ./tmp/dists/moldesign-${pyversion}.tar.gz
twine upload -u ${PYPI_USER} -p ${PYPI_PASSWORD} ./tmp/dists/moldesign-${CI_BRANCH}.tar.gz

0 comments on commit 70c794b

Please sign in to comment.