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: ...@@ -42,6 +42,7 @@ build_package:
stage: build stage: build
script: script:
- pip install -r requirements.txt - pip install -r requirements.txt
- sed -i "s_VERSION_0.0.1_g" setup.cfg
- python -m build - python -m build
artifacts: artifacts:
paths: paths:
...@@ -55,4 +56,6 @@ publish_package: ...@@ -55,4 +56,6 @@ publish_package:
stage: publish stage: publish
script: script:
- pip install twine - 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/* - 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] [metadata]
name = airflow_datacat_integration name = airflow_datacat_integration
version = 0.0.1 version = VERSION
author = Christian Boettcher author = Christian Boettcher
author_email = c.boettcher@fz-juelich.de author_email = c.boettcher@fz-juelich.de
description = Datacatalog Integration for Apache Airflow 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