hurl/ci/deploy.sh
2020-08-27 16:44:57 +02:00

27 lines
351 B
Bash
Executable File

#!/bin/bash
set -e
set -u
echo check git tag
TAG=$(git tag --points-at HEAD |tr -d '\n')
if [ "$TAG" == "" ]; then
echo "Tag is not set"
exit 0
fi
if [ "$TAG" != "$VERSION" ]; then
echo "Tag '$TAG' does not match version '$VERSION'"
exit 1
fi
echo tag matches version
ci/upload.sh "$VERSION" target/upload/*