github.com/zaquestion/lab@v0.25.1/docs/build.sh (about) 1 #/usr/local/env sh 2 3 set -x 4 5 (cd docs && go run main.go && 6 sed -i 's|lab.md|index.md|' *.md && 7 mv lab.md index.md) 8 if [ ! -z ${DEPLOY} ]; then 9 git config --global user.email "travis@travis-ci.org" && git config --global user.name "Travis CI" 10 git remote add origin-lab https://${GITHUB_TOKEN}@github.com/zaquestion/lab.git > /dev/null 2>&1 11 git fetch origin-lab && git checkout master && git add docs && git add README.md && git commit -m "(docs) ${CI_COMMIT_TAG}" && git push origin-lab master 12 fi