Skip to content

Commit c7d6234

Browse files
mmelentiev-mailTotktonada
authored andcommitted
travis-ci: fix publishing packages from tagged commits
Fixes #117
1 parent 4a2cd33 commit c7d6234

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

.travis.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@ stages:
1515
# see:
1616
# * https://github.com/tarantool/tarantool/issues/3745
1717
# * https://github.com/travis-ci/travis-ci/issues/7780#issuecomment-302389370
18-
if: (branch = master OR tag IS present) AND (env(PACKAGECLOUD_TOKEN) IS present)
18+
# Also skip deploys for pull-requests, api and cron events.
19+
if: (type = push) AND (branch = master OR tag IS present) AND (env(PACKAGECLOUD_TOKEN) IS present)
1920

2021
env:
2122
global:
@@ -32,6 +33,8 @@ _deploy_to_packagecloud: &deploy_to_packagecloud
3233
dist: $OS/$DIST
3334
package_glob: build/*.{rpm,deb}
3435
skip_cleanup: true
36+
on:
37+
all_branches: true # it's restricted with the condition for deploy stage
3538

3639
# Pack and deploy packages to PackageCloud
3740
_packpack: &packpack

0 commit comments

Comments
 (0)