From c3a1cb0cfa01f0622fb04707cd19379c6757942a Mon Sep 17 00:00:00 2001 From: Steffen Illium Date: Fri, 20 Oct 2023 15:32:29 +0200 Subject: [PATCH 1/2] Update .gitlab-ci.yml file --- .gitlab-ci.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 3521c39..d53efe2 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,7 +1,12 @@ +.only-pypi: + only: + - pypi + stages: # List of stages for jobs, and their order of execution - build build-job: # This job runs in the build stage, which runs first. + extends: .only-pypi stage: build variables: From b44e1d1c1efb013ceaf5f661452d39ab9968e59d Mon Sep 17 00:00:00 2001 From: Steffen Illium Date: Fri, 20 Oct 2023 15:40:31 +0200 Subject: [PATCH 2/2] Update .gitlab-ci.yml file --- .gitlab-ci.yml | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index d53efe2..f68e750 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,14 +1,12 @@ -.only-pypi: - only: - - pypi - stages: # List of stages for jobs, and their order of execution - build build-job: # This job runs in the build stage, which runs first. - extends: .only-pypi stage: build + rules: + - if: $CI_COMMIT_REF_NAME == "pypi" #when commit pushed in this branch it will trigger this job + variables: TWINE_USERNAME: $USER_NAME TWINE_PASSWORD: $API_KEY