diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index c86fdd3f2ec5a155c93a0bdf97245da169e98464..93dc2a9f4433f1a9c7d4d05e3c892fddaf79f60c 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -2,29 +2,19 @@ image: python:3.6 stages: - - test - - release - -test: - stage: test - script: - - echo 'Make your tests here !' - except: - - master - tags: - - sib + - release publish: - stage: release - before_script: + stage: release + before_script: + - pip install python-semantic-release~=5.0 sib-commit-parser~=0.3 - 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 - script: + - git remote set-url origin "https://gitlab-ci-token:${GL_TOKEN}@${CI_SERVER_HOST}/${CI_PROJECT_PATH}.git" + - git fetch --tags + script: - semantic-release publish - only: - - do_not_publish - tags: - - sib + only: + - master + tags: + - deploy \ No newline at end of file