forked from SkyTemple/skytemple-files
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Jenkinsfile
43 lines (37 loc) · 1.03 KB
/
Jenkinsfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
pipeline {
agent any
options {
disableConcurrentBuilds()
}
stages {
stage('Build') {
steps {
// Setup virtual env
sh "rm -rf .venv || true"
sh "virtualenv .venv"
// Run build
sh "rm -rf dist build || true"
sh '''. .venv/bin/activate
pip3 install -r requirements.txt
python3 setup.py bdist_wheel
'''
}
post {
always {
archiveArtifacts allowEmptyArchive: true, artifacts: 'dist/*whl', fingerprint: true
}
}
}
stage('Deploy to PyPI') {
when {
branch "release"
}
environment {
TWINE = credentials('parakoopa-twine-username-password')
}
steps {
sh 'twine upload -u "$TWINE_USR" -p "$TWINE_PSW" dist/*'
}
}
}
}