Restore source code packing on CircleCI

This commit is contained in:
Arun Prakash Jana 2021-06-03 03:50:30 +05:30
parent f27e93fba0
commit 88e9171266
No known key found for this signature in database
GPG key ID: A75979F35C080412

View file

@ -83,7 +83,7 @@ jobs:
steps:
- checkout
- run:
name: "package with packagecore"
name: "auto-generate packages"
command: |
# Clean up
rm -rf ./dist/*
@ -91,8 +91,8 @@ jobs:
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
packagecore -c misc/packagecore/packagecore.yaml -o ./dist/ ${CIRCLE_TAG#v}
#pip install packagecore
#packagecore -c misc/packagecore/packagecore.yaml -o ./dist/ ${CIRCLE_TAG#v}
# Move source pack to dist
mv ../${CIRCLE_PROJECT_REPONAME}-${CIRCLE_TAG}.tar.gz dist/
@ -119,11 +119,11 @@ workflows:
- master
jobs: *all-tests
# publish-github-release:
# jobs:
# - package-and-publish:
# filters:
# tags:
# only: /^v.*/
# branches:
# ignore: /.*/
publish-github-release:
jobs:
- package-and-publish:
filters:
tags:
only: /^v.*/
branches:
ignore: /.*/