Skip to content
Snippets Groups Projects
Commit 586f5dd9 authored by André Anjos's avatar André Anjos :speech_balloon:
Browse files

Make conda package deployment re-usable

parent 1599a845
No related branches found
No related tags found
No related merge requests found
...@@ -3,18 +3,7 @@ ...@@ -3,18 +3,7 @@
source $(dirname ${0})/functions.sh source $(dirname ${0})/functions.sh
# Uploads all the built packages deploy_conda_packages
for os in "osx-64" "noarch" "linux-64"; do
for f in ${CONDA_ROOT}/conda-bld/${os}/*.tar.bz2; do
if [[ -f $f ]]; then
if [ -z "${CI_COMMIT_TAG}" ]; then #beta
dav_upload "${f}" "private-upload/conda/${os}/"
else
dav_upload "${f}" "public-upload/conda/label/main/${os}/"
fi
fi
done
done
# upload the docs from the sphinx folder (usually an artifact of Linux Python # upload the docs from the sphinx folder (usually an artifact of Linux Python
# 3.6 builds) # 3.6 builds)
......
...@@ -333,6 +333,23 @@ install_miniconda() { ...@@ -333,6 +333,23 @@ install_miniconda() {
} }
# deployes all conda packages built up to now
deploy_conda_packages() {
# Uploads all the built packages
for os in "osx-64" "noarch" "linux-64"; do
for f in ${CONDA_ROOT}/conda-bld/${os}/*.tar.bz2; do
if [[ -f $f ]]; then
if [ -z "${CI_COMMIT_TAG}" ]; then #beta
dav_upload "${f}" "private-upload/conda/${os}/"
else
dav_upload "${f}" "public-upload/conda/label/main/${os}/"
fi
fi
done
done
}
check_env PYTHON_VERSION check_env PYTHON_VERSION
check_env CI_PROJECT_URL check_env CI_PROJECT_URL
check_env CI_PROJECT_DIR check_env CI_PROJECT_DIR
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment