mirror of
https://github.com/xtream1101/humblebundle-downloader.git
synced 2024-11-20 08:49:17 +01:00
parse version for ci to use
This commit is contained in:
parent
7aff11913f
commit
e2e5df7529
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user