diff --git a/.travis.yml b/.travis.yml index d40b3a935af..3a136c8c617 100644 --- a/.travis.yml +++ b/.travis.yml @@ -15,4 +15,9 @@ git: depth: 1 env: global: - secure: yNNjO4HvIcBH2r+EpWr29TQZzUJoQCC7MlxDtWW5XCsiL7lwnAxRk9DJ1edjYyd2lt4UWVyiQYD7708YMq7sR9TQWN195kcVnd1k5JzNBvePK9VjrmX2e2gRsbSQmWYQXFuUvbEbBmZUPhWbgaTzDzSdzsoFpTqJg3Q328S2GleixtPLBly5SC59Zar9tGw7OyVmPRN9GdKbVQfPQcmHDY+fHKzAqBaenlL/dC6UR9N+w5oWr3KFH/smrVzbDEonoKaZqvj02LnHVctGL6XCopoNbm7ldf/A6qKS/9D/MrLiLP3O3umCPhnGH8L8bNw7I6pdIKbroISUd+v5FqoCLN1iLO5wDY73gKUdwYUAt37KEhFUJPDwr/YYxRP0fZHIF0lI44w0RgN7N27ISwu9dw6Zq6a28+UcBRyemsvfXodBO9jiAW8R0pQhqWZ9yc2vZfFVfRh5SbHBLqIc0uHcqAtnkx8XU72bDDbqmA0dCA+LwAPX3doaaP37C5BzO+khGODpG+4R0nSsuTdPB6+jbBuS84V9YUAAl95hhMlYA9hvI3GdDjPkahuaYdUrYmqSh3v2XIhEA+D6BjXaGLYwcFpZzLB8pzZbRZVR4RdmuGF1J+ozxZNiKPPqcmK7XFlGWJ2b2+fFw3ZuHU6grDdCe1zpLYzrx1Om6QBUir83oGM= + - secure: yNNjO4HvIcBH2r+EpWr29TQZzUJoQCC7MlxDtWW5XCsiL7lwnAxRk9DJ1edjYyd2lt4UWVyiQYD7708YMq7sR9TQWN195kcVnd1k5JzNBvePK9VjrmX2e2gRsbSQmWYQXFuUvbEbBmZUPhWbgaTzDzSdzsoFpTqJg3Q328S2GleixtPLBly5SC59Zar9tGw7OyVmPRN9GdKbVQfPQcmHDY+fHKzAqBaenlL/dC6UR9N+w5oWr3KFH/smrVzbDEonoKaZqvj02LnHVctGL6XCopoNbm7ldf/A6qKS/9D/MrLiLP3O3umCPhnGH8L8bNw7I6pdIKbroISUd+v5FqoCLN1iLO5wDY73gKUdwYUAt37KEhFUJPDwr/YYxRP0fZHIF0lI44w0RgN7N27ISwu9dw6Zq6a28+UcBRyemsvfXodBO9jiAW8R0pQhqWZ9yc2vZfFVfRh5SbHBLqIc0uHcqAtnkx8XU72bDDbqmA0dCA+LwAPX3doaaP37C5BzO+khGODpG+4R0nSsuTdPB6+jbBuS84V9YUAAl95hhMlYA9hvI3GdDjPkahuaYdUrYmqSh3v2XIhEA+D6BjXaGLYwcFpZzLB8pzZbRZVR4RdmuGF1J+ozxZNiKPPqcmK7XFlGWJ2b2+fFw3ZuHU6grDdCe1zpLYzrx1Om6QBUir83oGM= + - DEPLOY_BRANCH="source" + - SOURCE_DIR="build" + - TARGET_BRANCH="master" + - GIT_NAME="shilman" + - GIT_EMAIL="michael@lab80.co" diff --git a/package.json b/package.json index d9c0c85bccc..92c49d22a56 100644 --- a/package.json +++ b/package.json @@ -32,13 +32,14 @@ "babel-preset-env": "^1.4.0", "babel-preset-react": "^6.24.1", "babel-preset-stage-0": "^6.24.1", - "gh-pages": "^0.12.0", - "markdownlint-cli": "^0.3.1", "eslint": "^3.19.0", "eslint-config-airbnb-base": "^11.1.3", "eslint-plugin-import": "^2.2.0", "eslint-plugin-jest": "^20.0.0", "eslint-plugin-prettier": "^2.0.1", + "gh-pages": "^0.12.0", + "gh-pages-travis": "^1.0.4", + "markdownlint-cli": "^0.3.1", "prettier": "^1.3.0", "remark-cli": "^3.0.1", "remark-lint": "^6.0.0", @@ -56,6 +57,7 @@ "build-storybook": "build-storybook", "build": "gatsby build && cp CNAME ./public", "deploy": "gh-pages -r git@github.com:storybooks/storybooks.github.io.git -d public -o origin -b master", + "deploy-travis": "gh-pages-travis", "develop": "gatsby develop", "storybook": "start-storybook -p 9009", "lint": "remark . # -- -o to update" diff --git a/scripts/travis/after_success.sh b/scripts/travis/after_success.sh index b2aac8b741a..61d749b5f23 100755 --- a/scripts/travis/after_success.sh +++ b/scripts/travis/after_success.sh @@ -8,5 +8,5 @@ fi if [[ $TRAVIS_BRANCH == 'source' ]]; then npm run build - npm run deploy + npm run deploy-travis fi