WIP automatic deployment
This commit is contained in:
parent
a091186825
commit
177fdd94c0
|
@ -193,7 +193,10 @@ set +x
|
||||||
#if [ "${OPJ_CI_INCLUDE_IF_DEPLOY:-}" == "1" ] && [ [ "${TRAVIS_TAG:-}" != "" ] || [ "${APPVEYOR_REPO_TAG:-}" == "true" ] ]; then
|
#if [ "${OPJ_CI_INCLUDE_IF_DEPLOY:-}" == "1" ] && [ [ "${TRAVIS_TAG:-}" != "" ] || [ "${APPVEYOR_REPO_TAG:-}" == "true" ] ]; then
|
||||||
if [ "${OPJ_CI_INCLUDE_IF_DEPLOY:-}" == "1" ]; then
|
if [ "${OPJ_CI_INCLUDE_IF_DEPLOY:-}" == "1" ]; then
|
||||||
OPJ_CI_DEPLOY=1
|
OPJ_CI_DEPLOY=1
|
||||||
|
OPJ_CUR_DIR=${PWD}
|
||||||
|
cd ${OPJ_BINARY_DIR}
|
||||||
cmake -D CPACK_GENERATOR:STRING=ZIP ${OPJ_SOURCE_DIR}
|
cmake -D CPACK_GENERATOR:STRING=ZIP ${OPJ_SOURCE_DIR}
|
||||||
|
cd ${OPJ_CUR_DIR}
|
||||||
cmake --build ${OPJ_BINARY_DIR} --target package
|
cmake --build ${OPJ_BINARY_DIR} --target package
|
||||||
echo "ready to deploy $(ls ${OPJ_BINARY_DIR}/openjpeg*.zip) to GitHub releases"
|
echo "ready to deploy $(ls ${OPJ_BINARY_DIR}/openjpeg*.zip) to GitHub releases"
|
||||||
if [ "${APPVEYOR_REPO_TAG:-}" == "true" ]; then
|
if [ "${APPVEYOR_REPO_TAG:-}" == "true" ]; then
|
||||||
|
|
Loading…
Reference in New Issue