From d1f8a4a6f56d3f938472f25805cbb2d32fd03225 Mon Sep 17 00:00:00 2001 From: vtexier <vit@free.fr> Date: Wed, 5 Jun 2019 19:45:42 +0200 Subject: [PATCH] [enh] #54 improve gitlab ci (github after release, build used by release) --- .gitlab-ci.yml | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 3335f1ae..9408d80b 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,17 +1,16 @@ stages: - - github-sync - prepare - black - test - build - release + - github-sync variables: PYENV_PYTHON_VERSION: 3.5.5 image: registry.duniter.org/docker/python3/duniterpy-builder:0.0.4 -# todo: remove useless github mirror as only repo is mirrored, not issues push_to_github: stage: github-sync variables: @@ -87,15 +86,12 @@ build: &build - pip install wheel - python setup.py sdist bdist_wheel -# todo: use build anchor as build stage is repeated here releases: <<: *pyenv + <<: *build stage: release when: manual script: - - pip install -r requirements.txt - - pip install wheel - pip install twine - - python setup.py sdist bdist_wheel - twine upload dist/* --username duniter --password $PYPI_PASSWORD -- GitLab