Skip to content

Commit 3360b28

Browse files
committed
Fix publishing to (Test)PyPI
Ref. eng/recordflux/RecordFlux#1859
1 parent 0e0392b commit 3360b28

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

.gitlab-ci.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -593,6 +593,7 @@ publishing_to_pypi:
593593
rules:
594594
- if: $CI_COMMIT_TAG =~ /^v\d+.\d+.\d+$/
595595
script:
596+
- export PATH=$HOME/.local/bin:$PATH
596597
- python$PYTHON_VERSION -m pip install twine
597598
- twine upload --non-interactive dist/*
598599
variables:
@@ -610,6 +611,7 @@ publishing_to_test_pypi:
610611
rules:
611612
- if: $CI_PIPELINE_SOURCE == "push" && $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
612613
script:
614+
- export PATH=$HOME/.local/bin:$PATH
613615
- python$PYTHON_VERSION -m pip install twine
614616
- twine upload --verbose --non-interactive --repository-url https://test.pypi.org/legacy/ dist/*
615617
variables:

0 commit comments

Comments
 (0)