2020-06-18 07:49:13 +00:00
|
|
|
#!/usr/bin/env bash
|
2020-02-29 00:43:59 +00:00
|
|
|
|
|
|
|
set -e
|
|
|
|
|
|
|
|
rm -rf authelia
|
2020-02-29 05:15:03 +00:00
|
|
|
git clone git@github.com:authelia/authelia.git --single-branch --branch gh-pages
|
2020-02-29 00:43:59 +00:00
|
|
|
|
|
|
|
pushd docs
|
|
|
|
bundle install
|
|
|
|
bundle exec jekyll build -d ../authelia
|
|
|
|
popd
|
|
|
|
|
|
|
|
COMMIT=$(git show -s --format=%h)
|
|
|
|
|
|
|
|
pushd authelia
|
2020-02-29 11:29:55 +00:00
|
|
|
git config user.name "Authelia[bot]"
|
|
|
|
git config user.email "autheliabot@gmail.com"
|
|
|
|
|
2020-02-29 12:07:23 +00:00
|
|
|
git status | grep "nothing to commit" && exit
|
2020-02-29 00:43:59 +00:00
|
|
|
git add -A
|
2020-02-29 05:15:03 +00:00
|
|
|
git commit -m "Synchronize docs of commit: ${COMMIT}"
|
2020-02-29 00:43:59 +00:00
|
|
|
git push
|
|
|
|
popd
|
|
|
|
|
2020-02-29 11:29:55 +00:00
|
|
|
rm -rf authelia
|