diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index f6a6122..ecfae1c 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -98,11 +98,14 @@ build: pypi_test_release: stage: release + variables: + TWINE_USERNAME: __token__ + TWINE_PASSWORD: ${TEST_PYPI_TOKEN} dependencies: - build script: - pip install twine - - python -m twine upload --skip-existing -r testpypi -u __token__ -p ${TEST_PYPI_TOKEN} dist/* + - python -m twine upload --skip-existing -r testpypi dist/* artifacts: paths: - dist @@ -112,11 +115,14 @@ pypi_test_release: pypi_release: stage: release + variables: + TWINE_USERNAME: __token__ + TWINE_PASSWORD: ${PYPI_TOKEN} dependencies: - build script: - pip install twine - - python -m twine upload -u __token__ -p ${PYPI_TOKEN} dist/* + - python -m twine upload dist/* artifacts: paths: - dist