Commit b195ec59 authored by Romin's avatar Romin
Browse files

Added gitlab ci configuration

parent bf1c855a
#
# This ci script builds the python package and pushes a release
# to the python package index (pypi).
# It is triggered upon the creation of a tag with name vX.X.X where
# X is a number in [0, 9].
# For the deployment to pypi the token 'PYPI_TOKEN' is required
# to be present in the repository.
#
stages:
- release
release:
tags:
- "runner:docker"
image: python:latest
stage: release
before_script:
- python -V
script:
- pip install wheel
- pip install twine
- python setup.py sdist bdist_wheel
- TWINE_PASSWORD=${PYPI_TOKEN} TWINE_USERNAME=__token__
python -m twine upload --repository pypi dist/*
only:
variables:
- $CI_COMMIT_TAG =~ /v[0-9]*\.[0-9]*\.[0-9]*/
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment