diff --git a/support/commitPub.sh b/support/commitPub.sh new file mode 100755 index 0000000000000000000000000000000000000000..dbcd92aee6033978fa0a556d27dc1e74296570c5 --- /dev/null +++ b/support/commitPub.sh @@ -0,0 +1,10 @@ +#!/usr/bin/env bash +[ -z "$TRAVIS" ] && exit 1 || echo "skip commit. Travis environment variable not set." +gpg --import bibbot.asc +git config --global user.email "bibbot@ckurs.de" +git config --global user.name "BibBot" +git config --global user.signingkey "1617C27854592471" +git commit -S -m "Update publication list" docs/publist.html +git remote add http https://${GITHUB_TOKEN}@github.com/ag-gipp/bib.git +git push http HEAD:$TRAVIS_BRANCH +exit 1 diff --git a/support/compile.sh b/support/compile.sh index 5605147d17ac20d9ff226038278064a1f67cdb18..2925a5e8447ade74a4701f8111de78b4f34667fd 100755 --- a/support/compile.sh +++ b/support/compile.sh @@ -8,3 +8,4 @@ cp allRefs.pdf ../../main.pdf cd ../.. python3 support/issue.py support/pubHtml +git diff -w docs/publist.html --exit-code || support/commitPub.sh