From 82e7a9870504cc87efbd259b2b47733be197e266 Mon Sep 17 00:00:00 2001 From: Arun Prakash Jana Date: Mon, 27 May 2019 20:19:07 +0530 Subject: Enable packing source --- .circleci/config.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to '.circleci/config.yml') 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: | -- cgit v1.2.3-70-g09d2