diff options
author | Arun Prakash Jana <engineerarun@gmail.com> | 2019-05-27 20:19:07 +0530 |
---|---|---|
committer | Arun Prakash Jana <engineerarun@gmail.com> | 2019-05-27 20:30:22 +0530 |
commit | 82e7a9870504cc87efbd259b2b47733be197e266 (patch) | |
tree | 767688b793b873f553bab1d6cda95da6e516336a /.circleci/config.yml | |
parent | 75768ad29ec1a17eafd1a3c80a661952b1e838a4 (diff) | |
download | nnn-82e7a9870504cc87efbd259b2b47733be197e266.tar.gz |
Enable packing source
Diffstat (limited to '.circleci/config.yml')
-rw-r--r-- | .circleci/config.yml | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/.circleci/config.yml b/.circleci/config.yml index 7ed563c..22be947 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -59,10 +59,20 @@ jobs: - run: 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} # Use latest installed python3 from pyenv export PYENV_VERSION="$(pyenv versions | grep -Po '\b3\.\d+\.\d+' | tail -1)" pip install packagecore packagecore -o ./dist/ ${CIRCLE_TAG#v} + # Move source pack to dist + mv ../${CIRCLE_PROJECT_REPONAME}-${CIRCLE_TAG}.tar.gz dist/ + - run: name: "publish to GitHub" command: | |