pipeline: deploy: image: python:latest when: event: tag branch: [main, master] secrets: [ twine_username, twine_password ] commands: - python --version - pip install -U twine --quiet - twine upload --skip-existing --repository testpypi -u $TWINE_USERNAME -p $TWINE_PASSWORD dist/* depends_on: - build