mirror of
https://github.com/0rangebananaspy/authelia.git
synced 2024-09-14 22:47:21 +07:00
6ccc92e47e
Co-authored-by: Victor Büttner <victor@0x23.dk> Co-authored-by: Clément Michaud <clement.michaud34@gmail.com>
26 lines
475 B
Bash
Executable File
26 lines
475 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
set -e
|
|
|
|
rm -rf authelia
|
|
git clone git@github.com:authelia/authelia.git --single-branch --branch gh-pages
|
|
|
|
pushd docs
|
|
bundle install
|
|
bundle exec jekyll build -d ../authelia
|
|
popd
|
|
|
|
COMMIT=$(git show -s --format=%h)
|
|
|
|
pushd authelia
|
|
git config user.name "Authelia[bot]"
|
|
git config user.email "autheliabot@gmail.com"
|
|
|
|
git status | grep "nothing to commit" && exit
|
|
git add -A
|
|
git commit -m "Synchronize docs of commit: ${COMMIT}"
|
|
git push
|
|
popd
|
|
|
|
rm -rf authelia
|