Skip to content

Commit

Permalink
update publish pipy job
Browse files Browse the repository at this point in the history
  • Loading branch information
llazzaro committed Jun 1, 2020
1 parent a9f5674 commit b90c587
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit b90c587

Please sign in to comment.