Sha256: 65ab2c92ff0160ababe0a2cd9c4fd77c5f44230a3737b2f1265220050c9d16c6
Contents?: true
Size: 797 Bytes
Versions: 5
Compression:
Stored size: 797 Bytes
Contents
#!/usr/bin/env bash git checkout master git fetch stash_created=0 if [[ "$(git diff --stat)" != "" ]]; then stash_created=1 git stash push -u -a -m "Before updating docs" fi; git pull --rebase rake yard git checkout gh-pages if [[ "$(git branch | grep \* | cut -d ' ' -f2)" != "gh-pages" ]]; then git checkout -b gh-pages fi; echo "Cleaning up current documentation" find . ! -path '*/.git*' ! -path '*/doc*' ! -path '*/update_docs.sh*' ! -path '*/_config.yml*' ! -path '*/_index.html*' ! -path '.' | xargs rm -rf echo "Copying new documentation" mv doc/* ./ echo "Sending new documentation to github" git add --all git commit -a -m 'Update documentation' git push --set-upstream origin gh-pages --force if [[ $stash_created == 1 ]]; then git stash pop fi; git checkout master
Version data entries
5 entries across 5 versions & 1 rubygems