@@ -8,30 +8,29 @@ echo Current branch is: $TRAVIS_BRANCH
8
8
echo Test result is: $TRAVIS_TEST_RESULT
9
9
10
10
if [ " $CHANNEL " = " stable" ] && [ " $TRAVIS_REPO_SLUG " = " angular/angular.dart" ]; then
11
-
12
- if [ $TRAVIS_TEST_RESULT -eq 0 ] && [ " $TRAVIS_BRANCH " = " master" ]; then
13
-
14
- echo " Gettting current docs from docs.angulardart.org repo on Github"
15
- rm -Rf docs.angulardart.org
16
- git clone https://github.com/angular/docs.angulardart.org.git
17
-
18
- echo " Removing old stable docs..."
19
- rm -rf docs.angulardart.org/docs
20
-
21
- echo " Copying new docs into stable folder..."
22
- rsync -a dartdoc-viewer/client/build/web/* docs.angulardart.org/
23
- cd docs.angulardart.org/
24
-
25
- # .git folder needs to be in the *project* root
26
- git config credential.helper " store --file=.git/credentials"
27
- echo " https://${GITHUB_TOKEN_DOCS_ANGULARDART_ORG} :@github.com" > .git/credentials
28
- git config user.name " travis@travis-ci.org"
29
-
30
- echo " Adding files..."
31
- git add .
32
- git commit -m " Automated push of generated docs from SHA: https://github.com/angular/angular.dart/commit/$SHA "
33
- git push
34
- fi
11
+ if [ $TRAVIS_TEST_RESULT -eq 0 ] && [ " $TRAVIS_BRANCH " = " master" ]; then
12
+ echo " Gettting current docs from docs.angulardart.org repo on Github"
13
+ rm -Rf docs.angulardart.org
14
+ git clone https://github.com/angular/docs.angulardart.org.git
15
+
16
+ echo " Removing old stable docs..."
17
+ rm -rf docs.angulardart.org/docs
18
+
19
+ echo " Copying new docs into stable folder..."
20
+ rsync -a dartdoc-viewer/client/build/web/* docs.angulardart.org/
21
+ cd docs.angulardart.org/
22
+
23
+ # .git folder needs to be in the *project* root
24
+ git config credential.helper " store --file=.git/credentials"
25
+ # travis encrypt GITHUB_TOKEN_ANGULAR_ORG=??? --repo=angular/angular.dart
26
+ echo " https://${GITHUB_TOKEN_ANGULAR_ORG} :@github.com" > .git/credentials
27
+ git config user.name " travis@travis-ci.org"
28
+
29
+ echo " Adding files..."
30
+ git add .
31
+ git commit -m " Automated push of generated docs from SHA: https://github.com/angular/angular.dart/commit/$SHA "
32
+ git push
33
+ fi
35
34
fi
36
35
37
36
0 commit comments