From e60dba936c796ce0ad0be37d45bea1c86e8ffd00 Mon Sep 17 00:00:00 2001 From: Harrison Deng Date: Thu, 9 Jan 2025 18:32:51 +0000 Subject: [PATCH] Added a tag name check for publishing --- Jenkinsfile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index 105c8bc..9b125ee 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -40,7 +40,10 @@ pipeline { CREDS = credentials('4d6f64be-d26d-4f95-8de3-b6a9b0beb311') } when { - branch '**/main' + allOf { + branch '**/main/*' + tag '*.*.*' + } } steps { sh returnStatus: true, 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/*'