diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index b7cdfa7..49c73b8 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -32,6 +32,8 @@ pylint: pypi-dev: stage: upload rules: + - if: '$CI_PIPELINE_SOURCE == "merge_request_event"' + when: never - if: '$CI_COMMIT_TAG !~ /^release-.*$/' script: - pip install -r requirements.txt @@ -40,6 +42,8 @@ pypi-dev: pypi-stable: stage: upload rules: + - if: '$CI_PIPELINE_SOURCE == "merge_request_event"' + when: never - if: '$CI_COMMIT_TAG =~ /^release-.*$/' script: - pyb -P version=${{ github.ref }} publish upload