Skip to content
Snippets Groups Projects
Commit 831ba3a9 authored by Juraj Paluba's avatar Juraj Paluba
Browse files

create develop branch

parent aebcac26
No related branches found
No related tags found
2 merge requests!12Merge develop to master,!9Develop
Pipeline #143237 failed
...@@ -26,7 +26,9 @@ build: ...@@ -26,7 +26,9 @@ build:
stage: build stage: build
script: script:
# Get version. Variable CI_COMMIT_TAG is set only when tag was pushed. # Get version. Variable CI_COMMIT_TAG is set only when tag was pushed.
- export VERSION=$(if [[ "$CI_COMMIT_TAG" == "" ]]; then echo 0.0.0; else echo $CI_COMMIT_TAG | cut -c 2-; fi) - export LATEST_TAG=$(git describe --abbrev=0)
- export VERSION=$(if [[ "$CI_COMMIT_TAG" == "" ]]; then echo $LATEST_TAG; else echo $CI_COMMIT_TAG; fi)
- export VERSION=$(echo $VERSION | cut -c 2-)
- python3 setup.py setopt --command=metadata --option=version --set-value=$VERSION - python3 setup.py setopt --command=metadata --option=version --set-value=$VERSION
- echo VERSION=$VERSION - echo VERSION=$VERSION
# Get package filename # Get package filename
...@@ -54,5 +56,6 @@ deploy: ...@@ -54,5 +56,6 @@ deploy:
- python3 -m twine upload --repository-url $KYPO_PYPI_UPLOAD_URL dist/$PACKAGE - python3 -m twine upload --repository-url $KYPO_PYPI_UPLOAD_URL dist/$PACKAGE
dependencies: dependencies:
- build - build
only: rules:
- tags - if: $CI_COMMIT_BRANCH == "develop"
- if: $CI_COMMIT_TAG
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment