Skip to content
This repository was archived by the owner on Aug 4, 2023. It is now read-only.

Commit a6ae372

Browse files
upload pypi package only for tagged commits
1 parent 7ece788 commit a6ae372

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

.gitlab-ci.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,7 @@
99
python.isort(),
1010
python.flake8(),
1111
python.pytest(),
12-
python.evaluate_git_tag_pep404_conformity(),
1312
python.bdist_wheel(),
14-
python.twine_upload(),
1513
kaniko.execute(
1614
image_name="thomass/gcip",
1715
enable_push=(PredefinedVariables.CI_COMMIT_TAG or PredefinedVariables.CI_COMMIT_BRANCH == "main"),
@@ -20,4 +18,10 @@
2018
),
2119
)
2220

21+
if PredefinedVariables.CI_COMMIT_TAG:
22+
pipeline.add_children(
23+
python.evaluate_git_tag_pep404_conformity(),
24+
python.twine_upload(),
25+
)
26+
2327
pipeline.write_yaml()

0 commit comments

Comments
 (0)