summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2023-02-28 15:58:47 (GMT)
committerBrad King <brad.king@kitware.com>2023-02-28 18:39:52 (GMT)
commit7c60a2625d8940cff786e6c6d432fca3fedacc00 (patch)
treefc1a4d84f9229b0461fb891811bcf141062a3dd4
parentfc8a9818935d69368bf13901dc9f043067054b70 (diff)
downloadCMake-7c60a2625d8940cff786e6c6d432fca3fedacc00.zip
CMake-7c60a2625d8940cff786e6c6d432fca3fedacc00.tar.gz
CMake-7c60a2625d8940cff786e6c6d432fca3fedacc00.tar.bz2
gitlab-ci: Optionally upload release packages to custom URL
-rw-r--r--.gitlab/rules.yml4
1 files changed, 4 insertions, 0 deletions
diff --git a/.gitlab/rules.yml b/.gitlab/rules.yml
index f530622..b85b728 100644
--- a/.gitlab/rules.yml
+++ b/.gitlab/rules.yml
@@ -72,6 +72,10 @@
when: manual
- if: '$CMAKE_CI_PACKAGE != null && $CI_JOB_STAGE != "upload"'
when: on_success
+ - if: '$CMAKE_CI_PACKAGE != null && $CI_JOB_STAGE == "upload" && $CMAKE_CI_PACKAGE_URL != null'
+ variables:
+ RSYNC_DESTINATION: "$CMAKE_CI_PACKAGE_URL"
+ when: on_success
- when: never
.run_cmake_org_help: