diff --git a/.travis.yml b/.travis.yml index be99b5bf4c..ad81142a96 100644 --- a/.travis.yml +++ b/.travis.yml @@ -269,7 +269,7 @@ jobs: - CIBW_TEST_REQUIRES="git+https://github.com/Qiskit/qiskit-terra.git" if: tag IS present script: - - pip install -U pip virtualenv + - pip install -U pip virtualenv twine - pip install cibuildwheel==1.1.0 - cibuildwheel --output-dir wheelhouse - twine upload wheelhouse/* @@ -280,7 +280,8 @@ jobs: env: - TWINE_USERNAME=qiskit python: 3.7 - before_script: true + before_script: + - pip install -U pip setuptools virtualenv twine install: true script: - python setup.py sdist diff --git a/azure-pipelines.yml b/azure-pipelines.yml index ae7c8ba6c4..e2be086c12 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -4,8 +4,13 @@ # https://docs.microsoft.com/azure/devops/pipelines/languages/python trigger: -- master -- stable + branches: + include: + - master + - stable/* + tags: + include: + - '*' stages: - stage: 'Wheel_Builds' @@ -55,6 +60,7 @@ stages: inputs: {pathtoPublish: 'wheelhouse'} condition: succeededOrFailed() - bash: | + pip install -U twine twine upload wheelhouse/* env: TWINE_PASSWORD: $(TWINE_PASSWORD)