Skip to content

Commit

Permalink
1.13.0
Browse files Browse the repository at this point in the history
  • Loading branch information
come-nc committed Feb 20, 2025
1 parent 506e437 commit 1bf9eba
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 4 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@
- SPDX-FileCopyrightText: 2019 Nextcloud GmbH and Nextcloud contributors
- SPDX-License-Identifier: AGPL-3.0-or-later
-->
# 1.13.0 - 20 Feb 2025

- Support for Nextcloud 31

# 1.12.0 - 20 Aug 2024

- Support for Nextcloud 30
Expand Down
19 changes: 15 additions & 4 deletions release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,19 @@ set -e

# Use version from changelog
# version=$(head -n1 CHANGELOG.md|cut -d"v" -f2);
version=$1
echo "Releasing version $version";
version=$(grep '^# ' CHANGELOG.md|head -n1|cut -d' ' -f2|cut -d' ' -f1);
# version=$1
# The target branch, defaults to the current branch
target=${2:-$(git branch --show-current)}

if [ $(git branch --show-current) != $target ]; then
if ! git switch $target > /dev/null; then
echo "Target branch does not exist, please enter a valid branch name"
exit 1
fi
fi

echo "Releasing version $version on branch $target";

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

# Add changed files to git
# git add CHANGELOG.md
git add CHANGELOG.md
git add appinfo/info.xml

# Bump npm version, commit and tag
Expand Down

0 comments on commit 1bf9eba

Please sign in to comment.