Skip to content

Commit

Permalink
Bump version ready for release, add upload to prod pypi if on Master
Browse files Browse the repository at this point in the history
  • Loading branch information
Matthew Macdonald-Wallace committed Apr 22, 2019
1 parent 242afe3 commit 4a2d4ed
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 1 deletion.
18 changes: 18 additions & 0 deletions Jenkinsfile
Expand Up @@ -58,5 +58,23 @@ pipeline {
sh 'python3 -m twine upload -u ${PYPI_TEST_USR} -p ${PYPI_TEST_PSW} --repository-url https://test.pypi.org/legacy/ **/*.whl'
}
}
stage("Deploy to PyPI Prod Server") {
agent {
label "pytest"
}
when {
expression {
env.BRANCH_NAME == "master"
}
}
environment {
PYPI_TEST = credentials('01b30226-ad41-4ba7-ae90-728d683c3318')
}
steps {
unstash 'pyloraserver-wheel'
sh 'pip3 install -r dev_requirements.txt'
sh 'python3 -m twine upload -u ${PYPI_TEST_USR} -p ${PYPI_TEST_PSW} **/*.whl'
}
}
}
}
2 changes: 1 addition & 1 deletion setup.py
Expand Up @@ -5,7 +5,7 @@

setuptools.setup(
name="pyloraserver",
version="0.0.2",
version="0.1.0",
author="Mockingbird Consulting Ltd",
author_email="info+pyloraserver@mockingbirdconsulting.co.uk",
description="A python library for interacting with Loraserver.io.",
Expand Down

0 comments on commit 4a2d4ed

Please sign in to comment.