Skip to content
Snippets Groups Projects
Commit 92758e45 authored by Christian Boettcher's avatar Christian Boettcher
Browse files

get version from release tag instead of manually

parent 294b427a
No related branches found
No related tags found
No related merge requests found
Pipeline #86130 failed
......@@ -42,6 +42,7 @@ build_package:
stage: build
script:
- pip install -r requirements.txt
- sed -i "s_VERSION_0.0.1_g" setup.cfg
- python -m build
artifacts:
paths:
......@@ -55,4 +56,6 @@ publish_package:
stage: publish
script:
- pip install twine
- VER=${CI_COMMIT_TAG#*-}
- sed -i "s_VERSION_${VER}_g" setup.cfg
- TWINE_PASSWORD=${CI_JOB_TOKEN} TWINE_USERNAME=gitlab-ci-token python -m twine upload --repository-url ${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/packages/pypi dist/*
[metadata]
name = airflow_datacat_integration
version = 0.0.1
version = VERSION
author = Christian Boettcher
author_email = c.boettcher@fz-juelich.de
description = Datacatalog Integration for Apache Airflow
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment