From ad082b8af6b6a347efdf278a702ab3f9a1e18b64 Mon Sep 17 00:00:00 2001 From: Harrison Deng Date: Fri, 10 Jan 2025 17:43:14 +0000 Subject: [PATCH] Revert "Always publish on build success" This reverts commit cc6a7563cafc15686e61810da6c412f27c82c1c8. --- Jenkinsfile | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Jenkinsfile b/Jenkinsfile index 25c9746..beab8ed 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -33,6 +33,12 @@ pipeline { environment { CREDS = credentials('4d6f64be-d26d-4f95-8de3-b6a9b0beb311') } + when { + allOf { + branch '**/main/*' + tag '*.*.*' + } + } steps { sh script: 'python -m twine upload --repository-url https://git.reslate.systems/api/packages/${CREDS_USR}/pypi -u ${CREDS_USR} -p ${CREDS_PSW} --non-interactive --disable-progress-bar --verbose dist/*' }