From b90c587ba8e9ac537064eb16d0139e1d4edc1050 Mon Sep 17 00:00:00 2001 From: Leonardo Lazzaro Date: Mon, 1 Jun 2020 15:01:55 -0300 Subject: [PATCH] update publish pipy job --- .gitlab-ci.yml | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index f5589b24..931f5d70 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -75,15 +75,12 @@ test_performance: publish_pypi: image: python:3 stage: publish - before_script: - - pip3 install virtualenv - - virtualenv -p python3 faraday_venv - - source faraday_venv/bin/activate - - pip install twine script: + - apt-get update -qy + - apt-get install twine -y - python setup.py sdist bdist_wheel - - twine upload dist/* -u $TWINE_USERNAME -p $TWINE_PASSWORD - + - twine upload -u $PYPI_USER -p $PYPI_PASS dist/* --verbose rules: - - if: '$CI_COMMIT_TAG =~ /^v[0-9.]+$/' + - if: '$CI_COMMIT_TAG' when: on_success +