From 50b0d259ba9b31cfe5c94da82d9fdf1838de6e46 Mon Sep 17 00:00:00 2001 From: noud-github Date: Fri, 14 May 2021 11:54:41 +0200 Subject: [PATCH 1/9] add initial steps for deploy to yoast-dist in .travis.yml --- .travis.yml | 32 ++++++++++++++ config/travis/deploy_to_dist.sh | 66 ++++++++++++++++++++++++++++ config/travis/id_rsa_yoast_dist.enc | Bin 0 -> 3248 bytes 3 files changed, 98 insertions(+) create mode 100755 config/travis/deploy_to_dist.sh create mode 100644 config/travis/id_rsa_yoast_dist.enc diff --git a/.travis.yml b/.travis.yml index 796722803..13b69782d 100644 --- a/.travis.yml +++ b/.travis.yml @@ -37,6 +37,38 @@ jobs: env: LINT=1 PHPUNIT=1 - php: "nightly" env: LINT=1 PHPUNIT=1 + - stage: 🚀 deployment + name: "Deploy to Yoast-dist" + php: 7.2 + install: + - yarn global add grunt-cli + - yarn install + before_script: skip + script: + - | + if [[ ! -z "$TRAVIS_TAG" ]]; then + grunt set-version -new-version=$TRAVIS_TAG + grunt update-version + fi + - grunt artifact + if: ( tag IS present OR branch =~ /^feature\// OR branch =~ /^release\// OR branch =~ /^hotfix\// OR branch = trunk ) AND type != pull_request + before_install: + - nvm install lts/* + - curl -o- -L https://yarnpkg.com/install.sh | bash + - export PATH=$HOME/.yarn/bin:$PATH + - openssl aes-256-cbc -K $encrypted_e268719177eb_key -iv $encrypted_e268719177eb_iv -in config/travis/deploy_keys/id_rsa_yoast_dist.enc -out config/travis/deploy_keys/id_rsa_yoast_dist -d + - chmod 600 config/travis/deploy_keys/id_rsa_yoast_dist + - eval $(ssh-agent -s) + - ssh-add config/travis/deploy_keys/id_rsa_yoast_dist + + # If the commit was tagged, create an artifact and push it to the distribution github + deploy: + skip_cleanup: true + provider: script + script: bash config/travis/deploy_to_dist.sh ${TRAVIS_TAG:-$TRAVIS_BRANCH} duplicate-post + on: + repo: $TRAVIS_REPO_SLUG + all_branches: true allow_failures: - php: "nightly" diff --git a/config/travis/deploy_to_dist.sh b/config/travis/deploy_to_dist.sh new file mode 100755 index 000000000..c1e1d0023 --- /dev/null +++ b/config/travis/deploy_to_dist.sh @@ -0,0 +1,66 @@ +#!/usr/bin/env bash + +###################### +## Deployment script # +###################### +## arg 1: git tag ## +## arg 2: repo-name ## +###################### + +set -ex + +if [ -z "$1" ]; then + echo 'The first argument should be the version you want to deploy to dist.' + exit 1 +fi + +if [ -z "$2" ]; then + echo 'The second argument should be the repo name.' + exit 1 +fi + +# Repo to deploy to: +USER="Yoast-dist" +REPO=$2 +REPO_URL="git@github.com:$USER/$REPO.git" + +# Get the latest tag. +lastTag=$1 +branch="master" +mainDir=$(pwd) + +if [[ $lastTag =~ ^feature/* || $lastTag =~ ^release/* || $lastTag =~ ^hotfix/* || $lastTag == "develop" ]]; then + branch=$lastTag +fi + +# Clone the dist repo. +rm -rf ./dist-repo +git clone ${REPO_URL} dist-repo +cd dist-repo +git checkout $branch 2>/dev/null || git checkout -b $branch +cd .. + +# Copy the git folder with the entire history. +cp -r ./dist-repo/.git ./artifact +cp composer.json ./artifact + +# Remove the vendor directory from the artifact, composer will generate it's own autoload. +rm -rf ./artifact/vendor + +# Navigate to the to be committed folder. +cd ./artifact + +# Commit the files. +git add -A + +# If it's a feature, release or trunk branch. +if [[ $lastTag =~ ^feature/* || $lastTag =~ ^release/* || $lastTag =~ ^hotfix/* || $lastTag == "develop" ]]; then + git commit --allow-empty -m "${TRAVIS_COMMIT_MESSAGE}" +else + git commit -m "Release ${lastTag}" + # Tag the commit. + git tag ${lastTag} +fi + +# Push to remote. +git push -u origin $branch --tags diff --git a/config/travis/id_rsa_yoast_dist.enc b/config/travis/id_rsa_yoast_dist.enc new file mode 100644 index 0000000000000000000000000000000000000000..e34372b90a141559e464ecbd132b9df05d993d78 GIT binary patch literal 3248 zcmV;h3{UfMN~jeiWrXqCkQJAPmTZo_gY-Ob_YUYiocExOoN`f^P-H%W$w!+H)ugPV zX8{3+|0M)@xy7cqsovNwGTlAb6{(s+ZGkKR%?aS5OI@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:17 +0200 Subject: [PATCH 2/9] revert travis.yml to see it work without mod. --- .travis.yml | 32 -------------------------------- 1 file changed, 32 deletions(-) diff --git a/.travis.yml b/.travis.yml index 13b69782d..796722803 100644 --- a/.travis.yml +++ b/.travis.yml @@ -37,38 +37,6 @@ jobs: env: LINT=1 PHPUNIT=1 - php: "nightly" env: LINT=1 PHPUNIT=1 - - stage: 🚀 deployment - name: "Deploy to Yoast-dist" - php: 7.2 - install: - - yarn global add grunt-cli - - yarn install - before_script: skip - script: - - | - if [[ ! -z "$TRAVIS_TAG" ]]; then - grunt set-version -new-version=$TRAVIS_TAG - grunt update-version - fi - - grunt artifact - if: ( tag IS present OR branch =~ /^feature\// OR branch =~ /^release\// OR branch =~ /^hotfix\// OR branch = trunk ) AND type != pull_request - before_install: - - nvm install lts/* - - curl -o- -L https://yarnpkg.com/install.sh | bash - - export PATH=$HOME/.yarn/bin:$PATH - - openssl aes-256-cbc -K $encrypted_e268719177eb_key -iv $encrypted_e268719177eb_iv -in config/travis/deploy_keys/id_rsa_yoast_dist.enc -out config/travis/deploy_keys/id_rsa_yoast_dist -d - - chmod 600 config/travis/deploy_keys/id_rsa_yoast_dist - - eval $(ssh-agent -s) - - ssh-add config/travis/deploy_keys/id_rsa_yoast_dist - - # If the commit was tagged, create an artifact and push it to the distribution github - deploy: - skip_cleanup: true - provider: script - script: bash config/travis/deploy_to_dist.sh ${TRAVIS_TAG:-$TRAVIS_BRANCH} duplicate-post - on: - repo: $TRAVIS_REPO_SLUG - all_branches: true allow_failures: - php: "nightly" From 9cc511984d0640f94f656c3c3c1862f67a53ec3d Mon Sep 17 00:00:00 2001 From: noud-github Date: Fri, 14 May 2021 12:14:33 +0200 Subject: [PATCH 3/9] Revert "revert travis.yml to see it work without mod." This reverts commit 3e010406969af6f9ea4acb366dcc31d4233445ef. --- .travis.yml | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/.travis.yml b/.travis.yml index 796722803..13b69782d 100644 --- a/.travis.yml +++ b/.travis.yml @@ -37,6 +37,38 @@ jobs: env: LINT=1 PHPUNIT=1 - php: "nightly" env: LINT=1 PHPUNIT=1 + - stage: 🚀 deployment + name: "Deploy to Yoast-dist" + php: 7.2 + install: + - yarn global add grunt-cli + - yarn install + before_script: skip + script: + - | + if [[ ! -z "$TRAVIS_TAG" ]]; then + grunt set-version -new-version=$TRAVIS_TAG + grunt update-version + fi + - grunt artifact + if: ( tag IS present OR branch =~ /^feature\// OR branch =~ /^release\// OR branch =~ /^hotfix\// OR branch = trunk ) AND type != pull_request + before_install: + - nvm install lts/* + - curl -o- -L https://yarnpkg.com/install.sh | bash + - export PATH=$HOME/.yarn/bin:$PATH + - openssl aes-256-cbc -K $encrypted_e268719177eb_key -iv $encrypted_e268719177eb_iv -in config/travis/deploy_keys/id_rsa_yoast_dist.enc -out config/travis/deploy_keys/id_rsa_yoast_dist -d + - chmod 600 config/travis/deploy_keys/id_rsa_yoast_dist + - eval $(ssh-agent -s) + - ssh-add config/travis/deploy_keys/id_rsa_yoast_dist + + # If the commit was tagged, create an artifact and push it to the distribution github + deploy: + skip_cleanup: true + provider: script + script: bash config/travis/deploy_to_dist.sh ${TRAVIS_TAG:-$TRAVIS_BRANCH} duplicate-post + on: + repo: $TRAVIS_REPO_SLUG + all_branches: true allow_failures: - php: "nightly" From ef131ce5949befd4527cd0eb8f67218b3c99c733 Mon Sep 17 00:00:00 2001 From: noud-github Date: Fri, 14 May 2021 12:22:54 +0200 Subject: [PATCH 4/9] add branch to travis.yml --- .travis.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.travis.yml b/.travis.yml index 13b69782d..f22271879 100644 --- a/.travis.yml +++ b/.travis.yml @@ -10,6 +10,7 @@ branches: - /^feature\/*/ # Also build tags like 1.1.1 or 1.1 for deployment. - /^\d+\.\d+(\.\d+)?(-\S*)?$/ + - push-to-dist cache: directories: From 82063ca9d071641afdc4cc5338a47bd44769b565 Mon Sep 17 00:00:00 2001 From: noud-github Date: Fri, 14 May 2021 12:48:16 +0200 Subject: [PATCH 5/9] add branch to stage deploy travis.yml --- .travis.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index f22271879..54773e2cf 100644 --- a/.travis.yml +++ b/.travis.yml @@ -10,6 +10,7 @@ branches: - /^feature\/*/ # Also build tags like 1.1.1 or 1.1 for deployment. - /^\d+\.\d+(\.\d+)?(-\S*)?$/ + # for testing deploy - push-to-dist cache: @@ -52,7 +53,7 @@ jobs: grunt update-version fi - grunt artifact - if: ( tag IS present OR branch =~ /^feature\// OR branch =~ /^release\// OR branch =~ /^hotfix\// OR branch = trunk ) AND type != pull_request + if: ( tag IS present OR branch =~ /^feature\// OR branch =~ /^release\// OR branch =~ /^hotfix\// OR branch = trunk OR branch = push-to-dist ) AND type != pull_request before_install: - nvm install lts/* - curl -o- -L https://yarnpkg.com/install.sh | bash From e4106241c06190195a12b587ecea40314dd3e110 Mon Sep 17 00:00:00 2001 From: noud-github Date: Tue, 18 May 2021 10:32:45 +0200 Subject: [PATCH 6/9] add yoast-dist config --- .travis.yml | 2 +- config/travis/deploy_keys/id_rsa_yoast_dist.enc | Bin 0 -> 3264 bytes config/travis/id_rsa_yoast_dist.enc | Bin 3248 -> 0 bytes 3 files changed, 1 insertion(+), 1 deletion(-) create mode 100644 config/travis/deploy_keys/id_rsa_yoast_dist.enc delete mode 100644 config/travis/id_rsa_yoast_dist.enc diff --git a/.travis.yml b/.travis.yml index 54773e2cf..4678b6af5 100644 --- a/.travis.yml +++ b/.travis.yml @@ -58,7 +58,7 @@ jobs: - nvm install lts/* - curl -o- -L https://yarnpkg.com/install.sh | bash - export PATH=$HOME/.yarn/bin:$PATH - - openssl aes-256-cbc -K $encrypted_e268719177eb_key -iv $encrypted_e268719177eb_iv -in config/travis/deploy_keys/id_rsa_yoast_dist.enc -out config/travis/deploy_keys/id_rsa_yoast_dist -d + - openssl aes-256-cbc -K $encrypted_6c01239ec342_key -iv $encrypted_6c01239ec342_iv -in config/travis/deploy_keys/id_rsa_yoast_dist.enc -out config/travis/deploy_keys/id_rsa_yoast_dist -d - chmod 600 config/travis/deploy_keys/id_rsa_yoast_dist - eval $(ssh-agent -s) - ssh-add config/travis/deploy_keys/id_rsa_yoast_dist diff --git a/config/travis/deploy_keys/id_rsa_yoast_dist.enc b/config/travis/deploy_keys/id_rsa_yoast_dist.enc new file mode 100644 index 0000000000000000000000000000000000000000..47b28d025017a2bfb64db9627420cf83744e96bd GIT binary patch literal 3264 zcmV;x3_tUT9Lft?gIM$lBpw39%sVD^D8s%EpveJ1th!~xf~a?(QL6DLjOKRu4a|Z_ zM=3|+eb;R!INcXeAv{||F;~BO01~XpZ*Q%*2%!9Ex1uamcKLG}zY%Z&PuyuLTB$!P z=-wEJ=KS!dT}wOP?+K4Bj18S^(;?aXfJnKxn*9a%a}bLm;QA#1ie{2Q7=#F@(D zU{T&s1OAbIC=F!UPtLUiVA^!Ye{e@U6OBc-3WJ^NGPF@3|YP(-P!1?{atqr>IcuNu| zyIe60eFrZpV$iIb;zi>I)F2C>sj{BRMHIG1kxE(50eu zQ4?wTs3A^2X}>^KLe(dBb1S{$l&e<1M(a75^37q}XQ+Caa%a%v5>+Mc6BllQY_d==~vq?3ECaHSo50Uu3F^rG&^+?+!$@0H$h zVK_=|R>p6$LACKxP6KJi&>r6NBB=E>I6_1020=wkNwi9H@ zKM~W~k?lsMwYG!52r;T9XXkDDizn{fG4MoPmGE90C*YpLZ>>5Vy`PyqW?=%yCN*dR zvfpX#`#|(*7_Lmi!P1!VrnM=+aB;#M1vG660v}htkS#JJ(LV)RUwi+UcWR6=2lKXZ zRl0)lhv5QP8;-Zk@tL2nqbzA);-mp?6jd6@DODL47B@q9L3Ws4^l1gxl(|>{f1Y;w ze}<&3gwqqnq>}>g#P6a}O}LVpWtUbfHA)n>KR!uv;YCRdoja_Y2CYKkmQ9nboLj~a z?rhslk~XAtl5Xa82i_bQW#UU{AYXc%68fZI8vLxx``Tpy;l)+gm5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L?pSrIJ|$TmhXNF{hY1R8uYs8hJ%q0=1ki7= zda1Des;}f?!f4a3!_E3T>LcC15gp9al~E5T#0^-eNl)ckAh_K|j30#bv%~~U{(dcA zZ-ib0j7V3IR0P4cZ>)oHkAJmguapGd-Ft|<5~|v@t}(AxD=X^@{E|pVHANu8kRK~W zw{hetu#BRCO!G$bJ-~o(Af?T15*BbZX`JiPWY`9JblW2-_iC|X5^%|}X%1P>{cU5B zbBpKQ{gxCOOseX_H?L}nN{Xwv!)SCYUHQ2Q9SnHXZq4gn1!;hLkR#FPxifcHi3m)>BOy2`-Br09Z@T$?hC@?k8285a9=mm6|S*Uhk_68l{ ye+)k@$LL4o6Y3Bc?AD~XEhRT=b??H+u5Y9Yloff+^Xmu2LPCC+T_QJ9ivlBpWnPQ` literal 0 HcmV?d00001 diff --git a/config/travis/id_rsa_yoast_dist.enc b/config/travis/id_rsa_yoast_dist.enc deleted file mode 100644 index e34372b90a141559e464ecbd132b9df05d993d78..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 3248 zcmV;h3{UfMN~jeiWrXqCkQJAPmTZo_gY-Ob_YUYiocExOoN`f^P-H%W$w!+H)ugPV zX8{3+|0M)@xy7cqsovNwGTlAb6{(s+ZGkKR%?aS5OI@`v4j^mIzqJR1!|VRq9J_Ic zcj(&q$bg?j%p3_=%YZtl1SPmZVe;RF&7Hqm<<8*#QIJdM*9Lq6`bAdknnhH@$ysG_ z{{q6{*U)ikwPtV$P;^EXT~!6WYnEz)09%q-B4O-*ZvOHrJCwJ*ea7Bx2*yy0?*S_i zD+Jk)ZND@xGUj4HWdsIZ>#Cx?}%}%rs>H;0-$Y*yyC&Q z#!I=^SIa)?-mS|R_0bDj0(~i{zMx6n2nC!V*S=(1*)3FA9U;#B!GWiCwHOkG=K^am z+grDY-|L&_JG_;!*%h8gWT$^F(+=@?b%N##4kPhy;Tt`Yt4>iO8B=?i7F~Tbnhpe} z68-mV1=hRQVpIc{O3uTYz{!qpkK_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Xjvf9ecbLU@;3SO{mkkwrL@#-)) z>0-tf{zMll!RH`&S%NRT0`Nf_vs$t|C#ltYMeg$NxBxMK0~Mn-hN7$U+fr>8x@?Bp z^Q}$kS>gpq_iyQCC^lbflfCm-iXRA<{hs&@fxud(?%!|tQOo8W(N4}fr1NHWi0Wv& zvOT5x`+09az%6?tdH>xqim@0XKK(o5ecQ&em7$SfQ+|BJ5+=d zeEVjx$cBmtH^0^G0!+8GwxQ}P1#j2B*7|Sv$TQ9IAlTcWFMn%GMTZ63!c%-TK9=2k zQt+24x(uzFOA;VEa zulQax6p&CC)@R>rWGh%p`4IiYO{Mi{jEUWrPWkwnAzMF42t2vTL`OJt#Sqc)new>< zz<~k1#D7_R6z1oz>yeuX$4-1_DbLV%0C_Gk=f#m*L~gP0)TIl7gutQ2WK-jPvc=7m zmUYGd8o=X_(=$mw=DE^pTU((MUT4(XWYk#r| z_GQ~ekj^si5aW%G%df0bN?+GdYY?xf?RR7@xK-YbUIB7hT!NVOwdF8A>?04Bk{A^o ig0D%tD)&JFyOKWuuJltm5QXPA@)UEt5;&%`bV6J5D{bQd From 5e962b103c77046873699e97745a1ac9569fa586 Mon Sep 17 00:00:00 2001 From: noud-github Date: Tue, 18 May 2021 12:38:27 +0200 Subject: [PATCH 7/9] add new yoast-dist config --- .travis.yml | 2 +- .../travis/deploy_keys/id_rsa_yoast_dist.enc | Bin 3264 -> 416 bytes 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 4678b6af5..ded1989d1 100644 --- a/.travis.yml +++ b/.travis.yml @@ -58,7 +58,7 @@ jobs: - nvm install lts/* - curl -o- -L https://yarnpkg.com/install.sh | bash - export PATH=$HOME/.yarn/bin:$PATH - - openssl aes-256-cbc -K $encrypted_6c01239ec342_key -iv $encrypted_6c01239ec342_iv -in config/travis/deploy_keys/id_rsa_yoast_dist.enc -out config/travis/deploy_keys/id_rsa_yoast_dist -d + - openssl aes-256-cbc -K $encrypted_d1beccaa5494_key -iv $encrypted_d1beccaa5494_iv -in config/travis/deploy_keys/id_rsa_yoast_dist.enc -out config/travis/deploy_keys/id_rsa_yoast_dist -d - chmod 600 config/travis/deploy_keys/id_rsa_yoast_dist - eval $(ssh-agent -s) - ssh-add config/travis/deploy_keys/id_rsa_yoast_dist diff --git a/config/travis/deploy_keys/id_rsa_yoast_dist.enc b/config/travis/deploy_keys/id_rsa_yoast_dist.enc index 47b28d025017a2bfb64db9627420cf83744e96bd..f423139d7a039d56f72f0ec7b1e39802dc50bee2 100644 GIT binary patch literal 416 zcmV;R0bl+qP(~kc3n`D(6q@vnmU|!WN2E9N*42aDC$Ngp2f~!&5TK1s;kpRM-@4YzaEo<#SA9EfeRe;C#j?!2mE*#!r+$5pzuZotK$i+}%)^wj+ zUY_=QghIAsoqkaz7X8XJGfnKJDkKB%K}WKX19UxopfHYePPpZTJVDYq4X-PTj@dT}wOP?+K4Bj18S^(;?aXfJnKxn*9a%a}bLm;QA#1ie{2Q7=#F@(D zU{T&s1OAbIC=F!UPtLUiVA^!Ye{e@U6OBc-3WJ^NGPF@3|YP(-P!1?{atqr>IcuNu| zyIe60eFrZpV$iIb;zi>I)F2C>sj{BRMHIG1kxE(50eu zQ4?wTs3A^2X}>^KLe(dBb1S{$l&e<1M(a75^37q}XQ+Caa%a%v5>+Mc6BllQY_d==~vq?3ECaHSo50Uu3F^rG&^+?+!$@0H$h zVK_=|R>p6$LACKxP6KJi&>r6NBB=E>I6_1020=wkNwi9H@ zKM~W~k?lsMwYG!52r;T9XXkDDizn{fG4MoPmGE90C*YpLZ>>5Vy`PyqW?=%yCN*dR zvfpX#`#|(*7_Lmi!P1!VrnM=+aB;#M1vG660v}htkS#JJ(LV)RUwi+UcWR6=2lKXZ zRl0)lhv5QP8;-Zk@tL2nqbzA);-mp?6jd6@DODL47B@q9L3Ws4^l1gxl(|>{f1Y;w ze}<&3gwqqnq>}>g#P6a}O}LVpWtUbfHA)n>KR!uv;YCRdoja_Y2CYKkmQ9nboLj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%-_9`mE+Z~G0gWlZb%is0hk z_bGI@DAfD9<8TcEh*vq!3#qDEDAa|L?pSrIJ|$TmhXNF{hY1R8uYs8hJ%q0=1ki7= zda1Des;}f?!f4a3!_E3T>LcC15gp9al~E5T#0^-eNl)ckAh_K|j30#bv%~~U{(dcA zZ-ib0j7V3IR0P4cZ>)oHkAJmguapGd-Ft|<5~|v@t}(AxD=X^@{E|pVHANu8kRK~W zw{hetu#BRCO!G$bJ-~o(Af?T15*BbZX`JiPWY`9JblW2-_iC|X5^%|}X%1P>{cU5B zbBpKQ{gxCOOseX_H?L}nN{Xwv!)SCYUHQ2Q9SnHXZq4gn1!;hLkR#FPxifcHi3m)>BOy2`-Br09Z@T$?hC@?k8285a9=mm6|S*Uhk_68l{ ye+)k@$LL4o6Y3Bc?AD~XEhRT=b??H+u5Y9Yloff+^Xmu2LPCC+T_QJ9ivlBpWnPQ` From 945f7d5c6b9a9371464fba0d695b2711d8c4d651 Mon Sep 17 00:00:00 2001 From: noud-github Date: Tue, 18 May 2021 13:02:13 +0200 Subject: [PATCH 8/9] fix branch for test push --- config/travis/deploy_to_dist.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/config/travis/deploy_to_dist.sh b/config/travis/deploy_to_dist.sh index c1e1d0023..3a8bca7f4 100755 --- a/config/travis/deploy_to_dist.sh +++ b/config/travis/deploy_to_dist.sh @@ -29,7 +29,7 @@ lastTag=$1 branch="master" mainDir=$(pwd) -if [[ $lastTag =~ ^feature/* || $lastTag =~ ^release/* || $lastTag =~ ^hotfix/* || $lastTag == "develop" ]]; then +if [[ $lastTag =~ ^feature/* || $lastTag =~ ^release/* || $lastTag =~ ^hotfix/* || $lastTag == "develop" || $lastTag == "push-to-dist" ]]; then branch=$lastTag fi @@ -54,7 +54,7 @@ cd ./artifact git add -A # If it's a feature, release or trunk branch. -if [[ $lastTag =~ ^feature/* || $lastTag =~ ^release/* || $lastTag =~ ^hotfix/* || $lastTag == "develop" ]]; then +if [[ $lastTag =~ ^feature/* || $lastTag =~ ^release/* || $lastTag =~ ^hotfix/* || $lastTag == "develop" || $lastTag == "push-to-dist" ]]; then git commit --allow-empty -m "${TRAVIS_COMMIT_MESSAGE}" else git commit -m "Release ${lastTag}" From ec22d76feaf6db9dbf7b4a7dcc054297c6c2d750 Mon Sep 17 00:00:00 2001 From: noud-github Date: Thu, 20 May 2021 09:16:21 +0200 Subject: [PATCH 9/9] add push to dist to travis task --- .travis.yml | 5 ++--- config/travis/deploy_to_dist.sh | 4 ++-- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/.travis.yml b/.travis.yml index ded1989d1..7b74136fd 100644 --- a/.travis.yml +++ b/.travis.yml @@ -4,14 +4,13 @@ language: php branches: only: - master + - trunk - develop - /^release\/*/ - /^hotfix\/\d+\.\d+(\.\d+)?(-\S*)?$/ - /^feature\/*/ # Also build tags like 1.1.1 or 1.1 for deployment. - /^\d+\.\d+(\.\d+)?(-\S*)?$/ - # for testing deploy - - push-to-dist cache: directories: @@ -53,7 +52,7 @@ jobs: grunt update-version fi - grunt artifact - if: ( tag IS present OR branch =~ /^feature\// OR branch =~ /^release\// OR branch =~ /^hotfix\// OR branch = trunk OR branch = push-to-dist ) AND type != pull_request + if: ( tag IS present OR branch =~ /^feature\// OR branch =~ /^release\// OR branch =~ /^hotfix\// OR branch = trunk OR branch = develop ) AND type != pull_request before_install: - nvm install lts/* - curl -o- -L https://yarnpkg.com/install.sh | bash diff --git a/config/travis/deploy_to_dist.sh b/config/travis/deploy_to_dist.sh index 3a8bca7f4..924419478 100755 --- a/config/travis/deploy_to_dist.sh +++ b/config/travis/deploy_to_dist.sh @@ -29,7 +29,7 @@ lastTag=$1 branch="master" mainDir=$(pwd) -if [[ $lastTag =~ ^feature/* || $lastTag =~ ^release/* || $lastTag =~ ^hotfix/* || $lastTag == "develop" || $lastTag == "push-to-dist" ]]; then +if [[ $lastTag =~ ^feature/* || $lastTag =~ ^release/* || $lastTag =~ ^hotfix/* || $lastTag == "develop" || $lastTag == "trunk" ]]; then branch=$lastTag fi @@ -54,7 +54,7 @@ cd ./artifact git add -A # If it's a feature, release or trunk branch. -if [[ $lastTag =~ ^feature/* || $lastTag =~ ^release/* || $lastTag =~ ^hotfix/* || $lastTag == "develop" || $lastTag == "push-to-dist" ]]; then +if [[ $lastTag =~ ^feature/* || $lastTag =~ ^release/* || $lastTag =~ ^hotfix/* || $lastTag == "develop" || $lastTag == "trunk" ]]; then git commit --allow-empty -m "${TRAVIS_COMMIT_MESSAGE}" else git commit -m "Release ${lastTag}"