Skip to content
Snippets Groups Projects
Commit c3c20d79 authored by Bryan Brancotte's avatar Bryan Brancotte
Browse files

default when no tag provided

parent 36feb95e
No related branches found
No related tags found
1 merge request!1Build package
Pipeline #13102 failed with stage
......@@ -2,8 +2,6 @@ upload:
stage: deploy
needs: []
image: python:3.11
rules:
- if: $CI_COMMIT_TAG
variables:
PRIVATE_REGISTRY_API_URL: "${PRIVATE_REGISTRY_API_URL}"
TWINE_PASSWORD: "${PRIVATE_REGISTRY_TOKEN_PASSWORD}"
......@@ -11,6 +9,10 @@ upload:
script:
- pip install "setuptools>=62.6" twine
- echo "Tag name used ${CI_COMMIT_TAG}"
- >
if [[ -z "$CI_COMMIT_TAG" ]]; then
CI_COMMIT_TAG="v0.0.1a"
fi
- sed -i "s/v0.0.1-dev/$CI_COMMIT_TAG/g" src/__init__.py
- python -m build
- python -m twine upload --verbose --repository-url ${PRIVATE_REGISTRY_API_URL} dist/*
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment