Added a tag name check for publishing

This commit is contained in:
Harrison Deng 2025-01-09 18:32:51 +00:00
parent 9589761ddd
commit e60dba936c

5
Jenkinsfile vendored
View File

@ -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/*'