Skip to content

Commit

Permalink
Test pypi
Browse files Browse the repository at this point in the history
  • Loading branch information
mifm committed Jan 26, 2023
1 parent ef84cc7 commit b717b10
Showing 1 changed file with 25 additions and 1 deletion.
26 changes: 25 additions & 1 deletion .gitlab-ci.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
image: dtuwindenergy/hydesign:latest

# ===== TEST hydesign debian=====
# ===== TEST hydesign linux=====
test_hydesign:
stage:
test
Expand Down Expand Up @@ -40,3 +40,27 @@ pages:
- main
tags:
- debian

# ===== DEPLOY publish hydesign on pypi=====
pypi:
stage:
deploy
only:
- tags
- test_pypi
script:
- apt-get update
- apt-get install -y pandoc
- pip install --upgrade pip
- pip install pypandoc
- pip install -e . --upgrade
- python -c 'from git_utils import get_tag; get_tag(verbose=True)'
- python -m pip install -U setuptools wheel
- python setup.py sdist bdist_wheel
- python -m pip install -U twine
- python -c 'from git_utils import rename_dist_file; rename_dist_file()'
- twine upload dist/* -u $TWINE_USERNAME -p $TWINE_PASSWORD
#- twine upload --repository-url https://test.pypi.org/legacy/ dist/* -u $TWINE_USERNAME -p $TWINE_PASSWORD # for testing purposes
tags:
- debian

0 comments on commit b717b10

Please sign in to comment.