diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 7eadb2c..3c914db 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -56,19 +56,18 @@ test: except: - master tags: - - sib + - test publish: stage: release before_script: + - pip install python-semantic-release sib-commit-parser - git config user.name "${GITLAB_USER_NAME}" - git config user.email "${GITLAB_USER_EMAIL}" - - git remote set-url origin "https://gitlab-ci-token:${GL_TOKEN}@git.happy-dev.fr/${CI_PROJECT_PATH}.git" - - pip install git+https://github.com/plup/python-semantic-release - - pip install sib-commit-parser + - git remote set-url origin "https://gitlab-ci-token:${GL_TOKEN}@${CI_SERVER_HOST}/${CI_PROJECT_PATH}.git" script: - semantic-release publish only: - master tags: - - sib + - deploy