Sha256: 7876f813ff5f0dc840ab700ce2b0ce0bba98d8603e988f3cbc80d91178e55b50
Contents?: true
Size: 754 Bytes
Versions: 1
Compression:
Stored size: 754 Bytes
Contents
#!/bin/bash set -e [ "$TRAVIS_PULL_REQUEST" != "false" ] && exit 0 revision="$(git rev-parse HEAD)" remote="$(git config remote.origin.url | sed "s+^git:+http://+")" ./gradlew site rm -rf gh_pages git clone . gh_pages cd gh_pages git remote add travis_push "$remote" git fetch travis_push git checkout -b gh-pages travis_push/gh-pages rm -rf docs cp -a ../embulk-docs/build/html docs git add docs git config user.name "$GIT_USER_NAME" git config user.email "$GIT_USER_EMAIL" git commit -m "Updated document $revision" || exit 0 git config credential.helper "store --file=.git_credential_helper" echo "https://$GITHUB_TOKEN:@github.com" > "$HOME/.git_credential_helper" trap "rm -rf $HOME/.git_credential_helper" EXIT git push travis_push gh-pages
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
embulk-0.4.0 | embulk-docs/push-gh-pages.sh |