Skip to content

Commit e266415

Browse files
committed
chore: add Jenkins stage to create GitHub release
1 parent 5b18c17 commit e266415

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

Jenkinsfile

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,26 @@ pipeline {
9292
}
9393
}
9494

95+
stage('Release') {
96+
when {
97+
environment name: 'PYTHON_VERSION', value: '3.11'
98+
buildingTag()
99+
}
100+
environment {
101+
PACKAGE_NAME = 'version-query'
102+
VERSION = sh(script: 'python3 -m version_query .', returnStdout: true).trim()
103+
}
104+
steps {
105+
script {
106+
githubUtils.createRelease([
107+
"dist/${PACKAGE_NAME.replace('-', '_')}-${VERSION}-py3-none-any.whl",
108+
"dist/${PACKAGE_NAME}-${VERSION}.tar.gz",
109+
"dist/${PACKAGE_NAME}-${VERSION}.zip"
110+
])
111+
}
112+
}
113+
}
114+
95115
}
96116

97117
}

0 commit comments

Comments
 (0)