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
This commit is part of merge request !1. Comments created here will be created in the context of that merge request.
...@@ -2,8 +2,6 @@ upload: ...@@ -2,8 +2,6 @@ upload:
stage: deploy stage: deploy
needs: [] needs: []
image: python:3.11 image: python:3.11
rules:
- if: $CI_COMMIT_TAG
variables: variables:
PRIVATE_REGISTRY_API_URL: "${PRIVATE_REGISTRY_API_URL}" PRIVATE_REGISTRY_API_URL: "${PRIVATE_REGISTRY_API_URL}"
TWINE_PASSWORD: "${PRIVATE_REGISTRY_TOKEN_PASSWORD}" TWINE_PASSWORD: "${PRIVATE_REGISTRY_TOKEN_PASSWORD}"
...@@ -11,6 +9,10 @@ upload: ...@@ -11,6 +9,10 @@ upload:
script: script:
- pip install "setuptools>=62.6" twine - pip install "setuptools>=62.6" twine
- echo "Tag name used ${CI_COMMIT_TAG}" - 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 - sed -i "s/v0.0.1-dev/$CI_COMMIT_TAG/g" src/__init__.py
- python -m build - python -m build
- python -m twine upload --verbose --repository-url ${PRIVATE_REGISTRY_API_URL} dist/* - 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