diff --git a/bin/tag.sh b/bin/tag.sh new file mode 100755 index 0000000..74fe225 --- /dev/null +++ b/bin/tag.sh @@ -0,0 +1,11 @@ +#!/usr/bin/env bash +# This file is part of Flask-Multipass-Keycloak. +# Copyright (C) 2023 - 2024 CERN & UNCONVENTIONAL + +set -e + +VERSION=$(grep '^version =' pyproject.toml | cut -d '"' -f 2) +TAG="v${VERSION}" + +git tag "${TAG}" -m "Release ${TAG}." +echo "Tag ${TAG} was created"