Skip to content

Commit

Permalink
Update deploy script
Browse files Browse the repository at this point in the history
  • Loading branch information
JrGoodle committed Jun 28, 2020
1 parent 37c9f92 commit 5aac513
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions script/deploy
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ TAG="${VERSION}"

popd || exit 1

git fetch --tags
git fetch --tags || exit 1
if git rev-list "${TAG}" >/dev/null; then
echo "${TAG} tag exists. No deployment will be done."
else
Expand All @@ -39,12 +39,6 @@ else
script/clean all || exit 1
echo ''

echo 'Create tag and push to GitHub'
echo '-----------------------------'
git tag "${TAG}" -a -m "${TAG}"
git push origin "${TAG}"
echo ''

pushd 'src' || exit 1
echo ''

Expand All @@ -58,16 +52,22 @@ else
sudo -H python3 setup.py bdist_wheel || exit 1
echo ''

echo "Creating new tag and GitHub Release"
echo '-----------------------------------'
echo 'Create tag and push to GitHub'
echo '-----------------------------'
git tag "${TAG}" -a -m "${TAG}" || exit 1
git push origin "${TAG}" || exit 1
echo ''

echo "Create new GitHub Release"
echo '-------------------------'
github-release release \
--tag "${TAG}" \
--name "${TAG}" \
--description "Release ${TAG}" || exit 1
echo ''

echo "Uploading artifacts to GitHub Releases"
echo '--------------------------------------'
echo "Upload artifacts to GitHub Releases"
echo '-----------------------------------'
pushd "dist" || exit 1
artifacts=( "clowder_repo-${VERSION}-py3-none-any.whl" \
"clowder-repo-${VERSION}.tar.gz" )
Expand All @@ -82,8 +82,8 @@ else
popd || exit 1
echo ''

echo 'Uploading to PyPI'
echo '-----------------'
echo 'Upload to PyPI'
echo '--------------'
twine upload src/dist/* || exit 1
echo ''
fi

0 comments on commit 5aac513

Please sign in to comment.