Commit 5987e1c6 authored by Adrian DC's avatar Adrian DC
Browse files

chore: deprecate 'Deploy Test' and enforce automatic tags release

parent e2a1e742
Loading
Loading
Loading
Loading
+2 −13
Changes for .gitlab-ci.yml: 2 added lines, 13 removed lines.
Original line number Diff line number Diff line
@@ -175,26 +175,15 @@ stages:
  only:
    - local

'Deploy Test':
  stage: deploy
  variables:
    TWINE_PASSWORD_TEST: ${TWINE_PASSWORD_TEST}
  script:
    - pip install -r requirements-dev.txt --upgrade
    - python setup.py bdist_wheel
    - twine upload -u '__token__' -p "${TWINE_PASSWORD_TEST}" --repository testpypi dist/*
  only:
    - tags
  when: manual

'Deploy Release':
  stage: deploy
  variables:
    TWINE_PASSWORD: ${TWINE_PASSWORD}
  before_script:
    - if [ ! "${CI_COMMIT_REF_PROTECTED}" = 'true' ]; then echo '[ERROR] Please protect this tag...'; exit 1; fi
  script:
    - pip install -r requirements-dev.txt --upgrade
    - python setup.py bdist_wheel
    - twine upload -u '__token__' -p "${TWINE_PASSWORD}" dist/*
  only:
    - tags
  when: manual