aboutsummaryrefslogtreecommitdiffstats
path: root/.circleci/config.yml
diff options
context:
space:
mode:
authorGravatar Maxim Baz <git@maximbaz.com>2020-01-15 13:24:29 +0100
committerGravatar Mischievous Meerkat <engineerarun@gmail.com>2020-01-15 17:54:29 +0530
commitd1b2bb1e760ed53e037f4a70cafbcd7b9e49411a (patch)
treea3ab62153ce54f40d0b50603cf01373202e60082 /.circleci/config.yml
parent38de6efd480c2523e6623ed0af241d31b7e6c948 (diff)
downloadnnn-d1b2bb1e760ed53e037f4a70cafbcd7b9e49411a.tar.gz
Release improvements, take 2 (#440)
* Revert "Undo changes from #417" * Do not remove .git folder
Diffstat (limited to '.circleci/config.yml')
-rw-r--r--.circleci/config.yml5
1 files changed, 1 insertions, 4 deletions
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