Travis conditional deployment: deploy script with regexp for branch skipped with error `branch not permitted`
我指定了多个部署脚本提供程序。可以运行但被跳过的一个是:
1 2 3 4 5 6 7 8 9 10 | - provider: script skip_cleanup: true script: curl -sL https://git.io/goreleaser | bash -s -- --rm-dist --skip-publish verbose: true on: condition:"$TRAVIS_OS_NAME = linux" branches: only: - /^release\\/.*$/ go: 1.11.x |
-
最后三个部署仅在master分支上,因此跳过它们的权利。
-
在所有与regexp相匹配的分支上的第一个部署:/^release/.*$/应该为此分支版本2.1.5运行。但是,它也跳过了此部署。
有人可以指出在这种情况下为什么跳过发布分支部署吗?我希望第一个部署在linux上运行,并且只发布分支,例如:release / 2.1.5。
Travis版本:https://travis-ci.org/leopardslab/dunner/jobs/560593148
Travis配置文件:https://github.com/leopardslab/dunner/blob/172a4c5792b0a8389556cc8ee4f690dc73fafb6e/.travis.yml
要有条件地运行部署脚本,请仅在与正则表达式匹配的分支(如release分支为