From 1b37bd43efaa158db137c540c2df0ae669707402 Mon Sep 17 00:00:00 2001 From: Daniel Rasmussen Date: Tue, 10 Mar 2020 17:05:14 -0300 Subject: [PATCH] Update deployment conditional check --- .travis.yml | 3 ++- CHANGES.rst | 6 ++++++ nengo_bones/templates/.travis.yml.template | 3 ++- 3 files changed, 10 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index a80cde18..6ac8b9a3 100644 --- a/.travis.yml +++ b/.travis.yml @@ -73,14 +73,15 @@ jobs: distributions: "sdist bdist_wheel " on: all_branches: true + tags: false condition: $TRAVIS_BRANCH =~ ^release-candidate-* - condition: $TRAVIS_TAG = "" - provider: pypi user: drasmuss password: $PYPI_TOKEN distributions: "sdist bdist_wheel " on: all_branches: true + tags: true condition: $TRAVIS_TAG =~ ^v[0-9]* before_install: diff --git a/CHANGES.rst b/CHANGES.rst index 6c7d6273..e0385bea 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -22,6 +22,12 @@ Release History 0.9.1 (unreleased) ================== +**Fixed** + +- Fixed deployment tag conditional check in ``.travis.yml`` template. (`#83`_) + +.. _#83: https://github.com/nengo/nengo-bones/pull/83 + 0.9.0 (January 28, 2020) ======================== diff --git a/nengo_bones/templates/.travis.yml.template b/nengo_bones/templates/.travis.yml.template index b87ddd7c..280cd44b 100644 --- a/nengo_bones/templates/.travis.yml.template +++ b/nengo_bones/templates/.travis.yml.template @@ -54,14 +54,15 @@ jobs: distributions: "{% for dist in deploy_dists %}{{ dist }} {%+ endfor %}" on: all_branches: true + tags: false condition: $TRAVIS_BRANCH =~ ^release-candidate-* - condition: $TRAVIS_TAG = "" - provider: pypi user: {{ pypi_user }} password: $PYPI_TOKEN distributions: "{% for dist in deploy_dists %}{{ dist }} {%+ endfor %}" on: all_branches: true + tags: true condition: $TRAVIS_TAG =~ ^v[0-9]* {% endif %}