From b882578b37a571c32097177c0c43245554046716 Mon Sep 17 00:00:00 2001 From: Peter Palaga Date: Fri, 26 Jan 2024 21:38:31 +0100 Subject: [PATCH 1/2] Add release script --- release.sh | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100755 release.sh diff --git a/release.sh b/release.sh new file mode 100755 index 0000000..863dff5 --- /dev/null +++ b/release.sh @@ -0,0 +1,35 @@ +#!/bin/bash +# +# Copyright (c) 2020 CQ Maven Plugin +# project contributors as indicated by the @author tags. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# + +# A script for editting .github/project.yml file, committing the changes and pushing the brach to upstream + +set -x +set -e + +releaseVersion="$1" +nextVersion="$2" + +topicBranch=trigger-release-$releaseVersion +git checkout -b $topicBranch + +sed -i -e 's| current-version:.*| current-version: '$releaseVersion'|' .github/project.yml +sed -i -e 's| next-version:.*| next-version: '$nextVersion'|' .github/project.yml + +git add -A +git commit -m "Trigger release $releaseVersion" +git push upstream $topicBranch From 1c4ed1a63f946e21ded0b1dd11b51971de4b690e Mon Sep 17 00:00:00 2001 From: Peter Palaga Date: Fri, 26 Jan 2024 21:38:46 +0100 Subject: [PATCH 2/2] Trigger release 1.1.3 --- .github/project.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/project.yml b/.github/project.yml index f09725e..2cb4d2f 100644 --- a/.github/project.yml +++ b/.github/project.yml @@ -1,3 +1,3 @@ release: - current-version: 1.1.2 - next-version: 1.1.3-SNAPSHOT + current-version: 1.1.3 + next-version: 1.1.4-SNAPSHOT