pipeline: build: image: python:latest when: event: tag secrets: [ twine_username, twine_password ] commands: - python --version - pip install -U build twine --quiet - python -m build - python -m twine upload --skip-existing --repository-url https://test.pypi.org/legacy/ -u $TWINE_USERNAME -p $TWINE_PASSWORD dist/*