mirror of
https://github.com/jarun/nnn.git
synced 2024-11-24 03:41:27 +00:00
Enable packing source
This commit is contained in:
parent
75768ad29e
commit
82e7a98705
|
@ -59,10 +59,20 @@ jobs:
|
||||||
- run:
|
- run:
|
||||||
name: "package with packagecore"
|
name: "package with packagecore"
|
||||||
command: |
|
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
|
# Use latest installed python3 from pyenv
|
||||||
export PYENV_VERSION="$(pyenv versions | grep -Po '\b3\.\d+\.\d+' | tail -1)"
|
export PYENV_VERSION="$(pyenv versions | grep -Po '\b3\.\d+\.\d+' | tail -1)"
|
||||||
pip install packagecore
|
pip install packagecore
|
||||||
packagecore -o ./dist/ ${CIRCLE_TAG#v}
|
packagecore -o ./dist/ ${CIRCLE_TAG#v}
|
||||||
|
# Move source pack to dist
|
||||||
|
mv ../${CIRCLE_PROJECT_REPONAME}-${CIRCLE_TAG}.tar.gz dist/
|
||||||
|
|
||||||
- run:
|
- run:
|
||||||
name: "publish to GitHub"
|
name: "publish to GitHub"
|
||||||
command: |
|
command: |
|
||||||
|
|
Loading…
Reference in a new issue