diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 1709ff6..72a4e44 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -27,6 +27,6 @@ tag: - main script: - *write_permission - - export VERSION=$(echo $(python -c "import importlib.metadata as v; print(v.version('humblebundle-downloader'))")) + - export VERSION=$(grep -m 1 version pyproject.toml | tr -s ' ' | tr -d '"' | tr -d "'" | cut -d' ' -f3) - git tag -a $VERSION -m "Version created by gitlab-ci release" - git push origin $VERSION