mirror of
https://github.com/sobolevn/git-secret
synced 2024-11-08 19:10:31 +00:00
8b1a01f1f6
The full list of changes: 1. Added `.docker/` folder with Dockerfiles 2. Now `travis` runs integrational tests inside these containers 3. Now `travis` runs tests with `mac os x` 4. Now there are new ways to autodeploy `deb` and `rpm` packages 5. Fixed some issues 6. Also added `.ci/` folder, where utility scripts for travis are stored 7. Moved `git-hooks` into the separate folder: `utils/hooks/` 8. Added new target to the `Makefile` 9. `.gitignore` is updated to ignore `build/` folder and inner files
22 lines
528 B
Bash
Executable File
22 lines
528 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
|
|
|
|
if [[ "$BRANCH_NAME" == 'staging' ]]; then
|
|
# Compare script version and the latest tag:
|
|
NEWEST_TAG=$(git describe --abbrev=0 --tags)
|
|
SCRIPT_VERSION=$(bash ${PWD}/git-secret --version)
|
|
|
|
if [[ "$NEWEST_TAG" != "v${SCRIPT_VERSION}" ]]; then
|
|
# Create new release:
|
|
git tag -a "v${SCRIPT_VERSION}" -m "version $SCRIPT_VERSION"
|
|
fi
|
|
fi
|