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