Update publish-book.sh

This commit is contained in:
Rob Walker 2019-12-17 15:36:11 -08:00 committed by GitHub
parent 282667c4b5
commit 585fca06a1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 2 deletions

View File

@ -56,7 +56,9 @@ echo --- create book repo
cd book/html/
git init .
git add ./* ./.nojekyll
git commit --author="$me <maintainers@solana.com>" -m "${CI_COMMIT:-local}"
git config user.email maintainers@solana.com
git config user.name "$me"
git commit -m "${CI_COMMIT:-local}"
)
echo "--- publish $BOOK"
@ -85,7 +87,9 @@ echo --- update gitbook-cage
# make a local commit for the svgs
git add -A -f book/src/.gitbook/assets/.
if ! git diff-index --quiet HEAD; then
git commit --author="$me <maintainers@solana.com>" -m "gitbook-cage update $(date -Is)"
git config user.email maintainers@solana.com
git config user.name "$me"
git commit -m "gitbook-cage update $(date -Is)"
git push -f github.com:solana-labs/solana-gitbook-cage.git HEAD:refs/heads/"$CI_BRANCH"
# pop off the local commit
git reset --hard HEAD~