Commit ca5d398e authored by Mikkel Friis-Møller's avatar Mikkel Friis-Møller Committed by Mads M. Pedersen
Browse files

Pypi

parent 8d863f25
Pipeline #6496 passed with stages
in 2 minutes and 17 seconds
......@@ -55,6 +55,22 @@ pages: # "pages" is a job specifically for GitLab pages [1]
tags: # only runners with this tag can do the job [3]
- python
# ===== BUILD WHEELS AND UPLOAD TO PYPI =====
pypi:
stage:
deploy
only:
- tags
# - master
script:
- python3 -m pip install -U setuptools wheel
- python3 setup.py sdist bdist_wheel
- python3 -m pip install -U twine
# - twine upload --repository-url https://test.pypi.org/legacy/ dist/* -u $TWINE_USERNAME -p $TWINE_PASSWORD # for testing purposes
- twine upload dist/* -u $TWINE_USERNAME -p $TWINE_PASSWORD
tags:
- python
# [1] GitLab page: https://docs.gitlab.com/ee/ci/yaml/#pages
# [2] CI stages: https://docs.gitlab.com/ee/ci/yaml/#stages
......
[distutils]
index-servers=
pypi
#testpypi # include this line for testing
[testpypi]
#repository: https://test.pypi.org/legacy/ # use this line when testing
repository: https://upload.pypi.org/legacy/
username: DTUWindEnergy
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment