Skip to content
Snippets Groups Projects

Remove testpypi deployment and automate push to pypi

Merged Bastien Abadie requested to merge skip-test-pypi into master
1 file
+ 0
22
Compare changes
  • Side-by-side
  • Inline
+ 0
22
@@ -49,30 +49,8 @@ client-lint:
@@ -49,30 +49,8 @@ client-lint:
script:
script:
- pre-commit run -a
- 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:
client-deploy-pypi:
stage: deploy
stage: deploy
when: manual
only:
only:
- tags@arkindex/api-client
- tags@arkindex/api-client
environment:
environment:
Loading