Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: release v1.13.0 for Nextcloud 31 #936

Merged
merged 1 commit into from
Feb 20, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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