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

build for tags

parent a65385a1
No related branches found
No related tags found
1 merge request!1Build package
Pipeline #13101 failed with stage
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}"
TWINE_USERNAME: "${PRIVATE_REGISTRY_TOKEN_USERNAME}"
script:
- pip install "setuptools>=62.6" twine
- echo "Tag name used ${CI_COMMIT_TAG}"
- 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/*
release:
tag_name: $CI_COMMIT_TAG
name: 'Release $CI_COMMIT_TAG'
description: 'Release created using the release-cli.'
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