hurl/ci/deploy.sh

27 lines
351 B
Bash
Raw Normal View History

2020-08-27 10:07:46 +03:00
#!/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/*