git-secret/utils/post-commit.sh
2016-02-24 13:57:29 +03:00

11 lines
180 B
Bash
Executable File

#!/usr/bin/env bash
set -e
BRANCH_NAME=$(git branch | grep '*' | sed 's/* //')
if [[ $BRANCH_NAME == 'master' ]]; then
# Build new web documentation:
make build-gh-pages
fi