mirror of
https://github.com/sobolevn/git-secret
synced 2024-11-16 21:26:12 +00:00
18 lines
416 B
Bash
Executable File
18 lines
416 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
|
|
|
|
# create new release:
|
|
NEWEST_TAG=$(git describe --abbrev=0 --tags)
|
|
SCRIPT_VERSION=$(git secret --version)
|
|
if [[ "$NEWEST_TAG" != "$SCRIPT_VERSION" ]]; then
|
|
git tag -a "$SCRIPT_VERSION" -m "version $SCRIPT_VERSION"
|
|
fi
|
|
fi
|