Skip to content

Commit

Permalink
[ADD] Publish to CI (gitlab)
Browse files Browse the repository at this point in the history
  • Loading branch information
EricHorvat committed Aug 26, 2020
1 parent 4b28924 commit ed6d865
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ before_script:

stages:
- testing
- publish

.unit_tests_base:
stage: testing
Expand Down Expand Up @@ -98,4 +99,16 @@ alpha_unit_test 3.8:
alpha_unit_test 3.9:
extends: .alpha_unit_test_base
image: python:3.9-rc
allow_failure: true
allow_failure: true

publish_pypi:
image: python:3
stage: publish
script:
- apt-get update -qy
- apt-get install twine -y
- python setup.py sdist bdist_wheel
- twine upload -u $PYPI_USER -p $PYPI_PASS dist/* --verbose
rules:
- if: '$CI_COMMIT_TAG'
when: on_success

0 comments on commit ed6d865

Please sign in to comment.