authelia/.buildkite/steps/syncdoc.sh
Clément Michaud a9f8958187
[BUGFIX] Add jekyll dependency in Gemfile. (#660)
* [BUGFIX] Add jekyll dependency in Gemfile.

* [Buildkite] Optimise documentation sync step

* [DOC] Fix merge conflict for index.md

* [DOC] Fix formatting issues
2020-02-29 16:15:03 +11:00

21 lines
336 B
Bash
Executable File

#!/bin/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 add -A
git commit -m "Synchronize docs of commit: ${COMMIT}"
git push
popd
rm -rf authelia