Skip to content
Snippets Groups Projects
Commit 56752442 authored by Bastien Abadie's avatar Bastien Abadie
Browse files

Remove testpypi deployment and automate push to pypi

parent 14d51c06
No related branches found
No related tags found
1 merge request!211Remove testpypi deployment and automate push to pypi
Pipeline #29337 passed
......@@ -49,30 +49,8 @@ client-lint:
script:
- pre-commit run -a
client-deploy-testpypi:
stage: test-deploy
only:
- tags@arkindex/api-client
environment:
name: testpypi
url: https://test.pypi.org/project/arkindex-client
before_script:
- pip install twine setuptools wheel
- echo "[distutils]" > ~/.pypirc
- echo "index-servers =" >> ~/.pypirc
- echo " testpypi" >> ~/.pypirc
- echo "[testpypi]" >> ~/.pypirc
- echo "repository=https://test.pypi.org/legacy/" >> ~/.pypirc
- echo "username=$PYPI_DEPLOY_USERNAME" >> ~/.pypirc
- echo "password=$PYPI_DEPLOY_PASSWORD" >> ~/.pypirc
script:
- python setup.py sdist bdist_wheel
- twine upload dist/* -r testpypi
client-deploy-pypi:
stage: deploy
when: manual
only:
- tags@arkindex/api-client
environment:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment