From d1b2bb1e760ed53e037f4a70cafbcd7b9e49411a Mon Sep 17 00:00:00 2001 From: Maxim Baz Date: Wed, 15 Jan 2020 13:24:29 +0100 Subject: Release improvements, take 2 (#440) * Revert "Undo changes from #417" * Do not remove .git folder --- .circleci/config.yml | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to '.circleci/config.yml') diff --git a/.circleci/config.yml b/.circleci/config.yml index 81c6c7b..48b02c2 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -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 -- cgit v1.2.3-70-g09d2