renamebycsv/Jenkinsfile

26 lines
857 B
Plaintext
Raw Normal View History

2023-04-08 10:36:11 +00:00
pipeline {
agent any
stages {
stage("install") {
steps {
sh 'conda env update --file environment.yml'
sh 'echo "conda activate renamebycsv" >> ~/.bashrc'
}
}
stage("build") {
steps {
sh "python -m build"
}
}
stage("publish") {
when {
branch '**/master'
}
2023-04-08 10:36:11 +00:00
steps {
withCredentials([usernamePassword(credentialsId: 'rs-git-package-registry-ydeng', passwordVariable: 'PASS', usernameVariable: 'USER')]) {
2023-04-08 17:51:38 +00:00
sh "python -m twine upload --repository-url https://git.reslate.systems/api/packages/${USER}/pypi -u ${USER} -p ${PASS} --non-interactive --disable-progress-bar --verbose dist/*"
2023-04-08 10:45:31 +00:00
}
2023-04-08 10:36:11 +00:00
}
}
}
}