From a2f7bedb2d694df929a4438a1ca40080e1aadb70 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alejandro=20Avil=C3=A9s?= Date: Tue, 9 Apr 2024 21:55:21 +0300 Subject: [PATCH] Add version tagging script --- bin/tag.sh | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100755 bin/tag.sh 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"