Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Coscine
community features
Coscine Python SDK
Commits
b195ec59
Commit
b195ec59
authored
Nov 22, 2021
by
Romin
Browse files
Added gitlab ci configuration
parent
bf1c855a
Changes
1
Hide whitespace changes
Inline
Side-by-side
.gitlab-ci.yml
0 → 100644
View file @
b195ec59
#
# 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]*/
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment