From f31d19db4bf90a629b26fadedbf335960fe70a41 Mon Sep 17 00:00:00 2001
From: Andre Anjos <andre.dos.anjos@gmail.com>
Date: Tue, 16 Jan 2018 17:41:44 +0100
Subject: [PATCH] Fix deployment script

---
 gitlab/deploy.sh | 11 +----------
 1 file changed, 1 insertion(+), 10 deletions(-)

diff --git a/gitlab/deploy.sh b/gitlab/deploy.sh
index ca90a56..7dcd9c9 100755
--- a/gitlab/deploy.sh
+++ b/gitlab/deploy.sh
@@ -5,7 +5,7 @@ source $(dirname ${0})/functions.sh
 
 # Uploads all the built packages
 for os in "osx-64" "noarch" "linux-64"; do
-  for f in ${CONDA_ENVS_PATH}/${os}/*.tar.bz2; 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}/"
@@ -21,12 +21,3 @@ done
 for folder in "${DOC_UPLOADS[@]}"; do
   dav_upload_folder sphinx "${folder}"
 done
-
-# # Deletes all the old packages if in beta
-# if [ -z "${CI_COMMIT_TAG}" ]; then #beta
-#     for urls in _ci/*/*/build_number.txt; do
-#         for url in `tail -n +2 $urls`; do
-#             dav_delete "private-upload/conda${url}"
-#         done
-#     done
-# fi
-- 
GitLab