Skip to content

Commit 1bf9eba

Browse files
committed
1.13.0
1 parent 506e437 commit 1bf9eba

File tree

2 files changed

+19
-4
lines changed

2 files changed

+19
-4
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22
- SPDX-FileCopyrightText: 2019 Nextcloud GmbH and Nextcloud contributors
33
- SPDX-License-Identifier: AGPL-3.0-or-later
44
-->
5+
# 1.13.0 - 20 Feb 2025
6+
7+
- Support for Nextcloud 31
8+
59
# 1.12.0 - 20 Aug 2024
610

711
- Support for Nextcloud 30

release.sh

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,19 @@ set -e
88

99
# Use version from changelog
1010
# version=$(head -n1 CHANGELOG.md|cut -d"v" -f2);
11-
version=$1
12-
echo "Releasing version $version";
11+
version=$(grep '^# ' CHANGELOG.md|head -n1|cut -d' ' -f2|cut -d' ' -f1);
12+
# version=$1
13+
# The target branch, defaults to the current branch
14+
target=${2:-$(git branch --show-current)}
15+
16+
if [ $(git branch --show-current) != $target ]; then
17+
if ! git switch $target > /dev/null; then
18+
echo "Target branch does not exist, please enter a valid branch name"
19+
exit 1
20+
fi
21+
fi
22+
23+
echo "Releasing version $version on branch $target";
1324

1425
# Ask for confirmation
1526
read -r -p "Are you sure? [y/N] " input
@@ -35,10 +46,10 @@ case $input in
3546
[yY][eE][sS]|[yY])
3647
echo "You say Yes"
3748
# Bump version in info.xml
38-
sed -i -E "s|^\t<version>.+</version>|\t<version>$version</version>|" appinfo/info.xml
49+
sed -i -E "s|^ <version>.+</version>| <version>$version</version>|" appinfo/info.xml
3950

4051
# Add changed files to git
41-
# git add CHANGELOG.md
52+
git add CHANGELOG.md
4253
git add appinfo/info.xml
4354

4455
# Bump npm version, commit and tag

0 commit comments

Comments
 (0)