From 23a5ab484e26b56213960f85ce45b8e3cc4f535d Mon Sep 17 00:00:00 2001 From: Moul <moul@moul.re> Date: Tue, 25 Jun 2019 22:27:55 +0200 Subject: [PATCH] [CI] #97: Trigger PyPi release job only on tag - Prevents the creation of two jobs: one from the tag and the other from the commit - Might fix non-working PyPi releases not made from the job with the tag --- .gitlab-ci.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index f54d947e..71f693c6 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -96,6 +96,8 @@ release: - pip install -r requirements_deploy.txt - make build - make deploy PYPI_LOGIN=${PYPI_LOGIN} PYPI_PASSWORD=${PYPI_PASSWORD} + only: + - tags release_test: <<: *pyenv -- GitLab