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: build:
stage: build stage: build
rules: rules:
- if: '$CI_COMMIT_TAG == null' - if: '$CI_COMMIT_TAG != null'
artifacts: artifacts:
paths: paths:
- dist/* - dist/*
@ -91,6 +91,6 @@ build:
pypi: pypi:
stage: upload stage: upload
rules: rules:
- if: '$CI_COMMIT_TAG == null' - if: '$CI_COMMIT_TAG != null'
script: script:
- twine upload dist/* - twine upload dist/*