Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

chore(doc): build docs for angular/angular.dart repo only #667

Closed
wants to merge 1 commit into from

2 participants

@vicb
Collaborator

No description provided.

@vicb vicb added cla: yes and removed cla: no labels
@vicb vicb self-assigned this
@vicb vicb added this to the v0.9.9 milestone
@vicb vicb removed their assignment
@jbdeboer
Collaborator

Landed as c7e96e4

@jbdeboer jbdeboer closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
This page is out of date. Refresh to see the latest.
Showing with 7 additions and 7 deletions.
  1. +7 −7 scripts/travis/publish-docs.sh
View
14 scripts/travis/publish-docs.sh
@@ -7,26 +7,26 @@ echo Current channel is: $CHANNEL
echo Current branch is: $TRAVIS_BRANCH
echo Test result is: $TRAVIS_TEST_RESULT
-if [ "$CHANNEL" = "stable" ]; then
+if [ "$CHANNEL" = "stable" ] && [ "$TRAVIS_REPO_SLUG" = "angular/angular.dart" ]; then
+
+ if [ $TRAVIS_TEST_RESULT -eq 0 ] && [ "$TRAVIS_BRANCH" = "master" ]; then
- if [ $TRAVIS_TEST_RESULT -eq 0 ] && [ "$TRAVIS_BRANCH"="master" ]; then
-
echo "Gettting current docs from docs.angulardart.org repo on Github"
rm -Rf docs.angulardart.org
git clone https://github.com/angular/docs.angulardart.org.git
-
+
echo "Removing old stable docs..."
rm -rf docs.angulardart.org/docs
-
+
echo "Copying new docs into stable folder..."
rsync -a dartdoc-viewer/client/build/web/* docs.angulardart.org/
cd docs.angulardart.org/
-
+
#.git folder needs to be in the *project* root
git config credential.helper "store --file=.git/credentials"
echo "https://${GITHUB_TOKEN_DOCS_ANGULARDART_ORG}:@github.com" > .git/credentials
git config user.name "travis@travis-ci.org"
-
+
echo "Adding files..."
git add .
git commit -m "Automated push of generated docs from SHA: $SHA"
Something went wrong with that request. Please try again.