Fix the condition for the source tarball task

When building a release tag, the branch is not set to "master",
it is the name of the release tag.
Instead, do a regex match on the tag name to identify that we
are processing a release.
This commit is contained in:
Jean Pierre Cimalando 2020-10-06 00:40:53 +02:00
parent e8d052d50c
commit 9835da1672

View file

@ -156,7 +156,7 @@ jobs:
- stage: "Deploy"
name: "Source packaging"
if: (tag IS present) AND (branch = master) AND (type = push)
if: (tag =~ /^v?[0-9]/) AND (type = push)
env:
- INSTALL_DIR="sfizz-${TRAVIS_BRANCH}-src"
addons: