From ba0770d65e47390b9efc542ee723332a41d6d759 Mon Sep 17 00:00:00 2001 From: Faerbit Date: Thu, 29 Sep 2022 16:55:38 +0200 Subject: [PATCH] Add release script --- scripts/release.sh | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100755 scripts/release.sh diff --git a/scripts/release.sh b/scripts/release.sh new file mode 100755 index 0000000..4260267 --- /dev/null +++ b/scripts/release.sh @@ -0,0 +1,8 @@ +#!/bin/bash + +last_patch=$(git tag | sort -V | tail -n1 | cut -d "." -f3) +git tag "1.0.$((last_patch + 1))" +git push gitlab main -o ci.skip +git push gitlab --tags +git push origin main +git push origin --tags