fixing bugs with ci pipeline
This commit is contained in:
@ -34,12 +34,8 @@ fi
|
||||
cd python-client || exit
|
||||
python3 -m venv .venv
|
||||
source .venv/bin/activate
|
||||
pip install -U pip twine build
|
||||
pip install -U pip build
|
||||
python -m build
|
||||
|
||||
# Upload package (only if in CI environment)
|
||||
if [[ -z "${CI_API_V4_URL}" || -z "${CI_PROJECT_ID}" ]]; then
|
||||
echo "Skipping package upload—CI variables not set."
|
||||
else
|
||||
twine upload --repository-url "${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/packages/pypi" dist/*
|
||||
fi
|
||||
# Skip uploading the package. This will happen in the release stage.
|
||||
echo "Python client generated and package built successfully."
|
Reference in New Issue
Block a user