release & upload only on tags

This commit is contained in:
jem 2022-01-20 19:06:33 +01:00
parent 4ba2857db7
commit d5ad3c7628

View file

@ -81,7 +81,7 @@ test-1.1.3:
build:
stage: build
rules:
- if: '$CI_COMMIT_TAG == null'
- if: '$CI_COMMIT_TAG != null'
artifacts:
paths:
- dist/*
@ -91,6 +91,6 @@ build:
pypi:
stage: upload
rules:
- if: '$CI_COMMIT_TAG == null'
- if: '$CI_COMMIT_TAG != null'
script:
- twine upload dist/*