1
0
mirror of https://gitlab.com/MisterBiggs/aero-astro-calc.git synced 2025-07-23 22:51:27 +00:00

Update .gitlab-ci.yml

This commit is contained in:
2020-01-20 21:13:45 +00:00
parent 4f7427c80f
commit c80417f45e

@@ -1,11 +1,17 @@
before_script:
- python -V # Print out python version for debugging
- pip install setuptools wheel
stages:
- deploy
# https://github.com/python-gitlab/python-gitlab/blob/master/.gitlab-ci.yml used for reference
deploy:
stage: deploy
image: python:3.8
before_script:
- python -V # Print out python version for debugging
- pip install -U setuptools wheel twine
run:
script:
- python setup.py bdist_wheel
- python -m twine upload dist/*
- echo __token__
- echo $PYPI_TOKEN
- twine upload --skip-existing -u __token__ -p $PYPI_TOKEN dist dist/*
only:
- tags