Skip to content

Commit 8b69d91

Browse files
authored
chore(travis): fix deployment condition to include tagged commits
Tagged commits are not considered to belong to any branch. Closes angular#16346
1 parent 0fa5a37 commit 8b69d91

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.travis.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -53,10 +53,10 @@ notifications:
5353
jobs:
5454
include:
5555
- stage: deploy
56-
# Don't deploy from PRs and only from our default branches.
56+
# Don't deploy from PRs. Only deploy from our default branches, or if commit is tagged.
5757
# This is a Travis-specific boolean language: https://docs.travis-ci.com/user/conditional-builds-stages-jobs#Specifying-conditions
5858
# The deployment logic for pushed branches is further defined in scripts\travis\build.sh
59-
if: type != pull_request and branch =~ ^(v1\.\d+\.x|master)$
59+
if: type != pull_request and (branch =~ ^(v1\.\d+\.x|master)$ or tag IS present)
6060
env:
6161
- JOB=deploy
6262
before_script: skip

0 commit comments

Comments
 (0)