forked from Mirrors/humblebundle-downloader
parse version for ci to use
This commit is contained in:
@@ -27,6 +27,6 @@ tag:
|
|||||||
- main
|
- main
|
||||||
script:
|
script:
|
||||||
- *write_permission
|
- *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 tag -a $VERSION -m "Version created by gitlab-ci release"
|
||||||
- git push origin $VERSION
|
- git push origin $VERSION
|
||||||
|
|||||||
Reference in New Issue
Block a user