From 8384792618f2acce7dddc445a90ef6741bfc3299 Mon Sep 17 00:00:00 2001 From: Stephen Anyango Date: Wed, 17 Mar 2021 05:12:45 +0000 Subject: [PATCH] Add .gitlab-ci.yml --- .gitlab-ci.yml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 .gitlab-ci.yml diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000..368d3aa --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,14 @@ +image: python:3.8 + +wheel: + stage: build + script: + - pip install twine + - python setup.py sdist bdist_wheel + - TWINE_PASSWORD=${CI_JOB_TOKEN} TWINE_USERNAME=gitlab-ci-token python -m twine upload --repository-url $PYPI_SERVER dist/* + artifacts: + paths: + - dist/ + only: + refs: + - master