You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: .travis.yml
+33Lines changed: 33 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -4,6 +4,7 @@ language: php
4
4
branches:
5
5
only:
6
6
- master
7
+
- trunk
7
8
- develop
8
9
- /^release\/*/
9
10
- /^hotfix\/\d+\.\d+(\.\d+)?(-\S*)?$/
@@ -37,6 +38,38 @@ jobs:
37
38
env: LINT=1 PHPUNIT=1
38
39
- php: "nightly"
39
40
env: LINT=1 PHPUNIT=1
41
+
- stage: 🚀 deployment
42
+
name: "Deploy to Yoast-dist"
43
+
php: 7.2
44
+
install:
45
+
- yarn global add grunt-cli
46
+
- yarn install
47
+
before_script: skip
48
+
script:
49
+
- |
50
+
if [[ ! -z "$TRAVIS_TAG" ]]; then
51
+
grunt set-version -new-version=$TRAVIS_TAG
52
+
grunt update-version
53
+
fi
54
+
- grunt artifact
55
+
if: ( tag IS present OR branch =~ /^feature\// OR branch =~ /^release\// OR branch =~ /^hotfix\// OR branch = trunk OR branch = develop ) AND type != pull_request
0 commit comments