Release improvements, take 2 (#440)

* Revert "Undo changes from #417"

* Do not remove .git folder
This commit is contained in:
Maxim Baz 2020-01-15 13:24:29 +01:00 committed by Mischievous Meerkat
parent 38de6efd48
commit d1b2bb1e76

View file

@ -62,12 +62,9 @@ jobs:
name: "package with packagecore"
command: |
# Clean up
rm -rf ./.git
rm -rf ./dist/*
# Pack source
cd ..
tar -czf ${CIRCLE_PROJECT_REPONAME}-${CIRCLE_TAG}.tar.gz ${CIRCLE_PROJECT_REPONAME}
cd ${CIRCLE_PROJECT_REPONAME}
git archive -o ../${CIRCLE_PROJECT_REPONAME}-${CIRCLE_TAG}.tar.gz --format tar.gz --prefix=${CIRCLE_PROJECT_REPONAME}-${CIRCLE_TAG#v}/ ${CIRCLE_TAG}
# Use latest installed python3 from pyenv
export PYENV_VERSION="$(pyenv versions | grep -Po '\b3\.\d+\.\d+' | tail -1)"
pip install packagecore