From 9d44d9edf0e1c67130ea01ecd6ba897d9f339e14 Mon Sep 17 00:00:00 2001 From: Yannick Jadoul Date: Thu, 16 Jan 2020 17:06:07 +0100 Subject: [PATCH] Remove check for branch of tags in examples/travis-ci-test-and-deploy.yml; fix #246 --- examples/travis-ci-test-and-deploy.yml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/examples/travis-ci-test-and-deploy.yml b/examples/travis-ci-test-and-deploy.yml index 2609921f..bdaa415a 100644 --- a/examples/travis-ci-test-and-deploy.yml +++ b/examples/travis-ci-test-and-deploy.yml @@ -28,10 +28,12 @@ script: stages: - test - # Only execute deployment stage on master branch, tagged commits, - # and from your repository (e.g. not PRs). Replace with your repo name. + # Only execute deployment stage on tagged commits, and from your repository + # (e.g. not PRs). Replace with your repo name. - name: deploy - if: branch = master AND tag IS PRESENT AND repo = joerick/cibuildwheel + if: tag IS PRESENT AND repo = joerick/cibuildwheel + # To only build tags that look like vX.Y.Z: + # if: tag =~ ^v\d+\.\d+\.\d+$ AND repo = joerick/cibuildwheel jobs: include: