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: