Skip to content
Snippets Groups Projects
Commit d94dc9c2 authored by Tobias Hangleiter's avatar Tobias Hangleiter
Browse files

Merge branch 'ci/automatic_release_on_tag' into 'master'

CI/automatic release on tag

See merge request !106
parents 730c5df3 6c8ceea2
No related branches found
No related tags found
1 merge request!106CI/automatic release on tag
......@@ -38,3 +38,19 @@ pages:
when: always
- if: $CI_COMMIT_BRANCH != $CI_DEFAULT_BRANCH
when: manual
pypi:
needs:
- job: "build"
artifacts: true
script:
- pip install -U twine
- twine upload -u "$TWINE_USERNAME" -p "$TWINE_PASSWORD" dist/*
rules:
- if: '$CI_COMMIT_TAG =~ /^v\d{4}\.\d{1,2}\.\d{1,2}$/'
# Always publish tagged commits matching CalVer
when: on_success
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
# Allow manually pushing to pypi
when: manual
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment