From fee426795a6c1c87978e3eca42a85a9ba5837d0b Mon Sep 17 00:00:00 2001 From: GwynBleidD Date: Thu, 2 May 2019 16:03:28 +0200 Subject: [PATCH] Added uploading to gitlab CI --- .gitlab-ci.yml | 19 ++++++++++++++++--- 1 file changed, 16 insertions(+), 3 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 4894f86..076922a 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,7 +1,7 @@ stages: - test - build -# - deploy + - upload image: "registry.gitlab.com/gbd.lin/django-admin-toolbox-ci/ansible:latest" @@ -17,7 +17,7 @@ chceck_flake8: - branches - tags -build_sdist: +build:sdist: stage: build tags: - python3 @@ -30,10 +30,11 @@ build_sdist: except: - branches artifacts: + name: '$CI_COMMIT_REF_NAME-sdist' paths: - dist/ -build_wheel: +build:wheel: stage: build tags: - python3 @@ -46,5 +47,17 @@ build_wheel: except: - branches artifacts: + name: '$CI_COMMIT_REF_NAME-wheel' paths: - dist/ + +upload:pypi: + stage: upload + tags: + - python3 + - setuptools + script: + - "twine upload dist/* -u $PYPI_USER -p $PYPI_PASSWORD" + dependencies: + - build:sdist + - build:wheel