aboutsummaryrefslogtreecommitdiffstats
path: root/release.sh
diff options
context:
space:
mode:
authorMarius Vlad <marius.vlad@collabora.com>2022-12-14 14:33:42 +0200
committerSimon Ser <contact@emersion.fr>2023-01-16 10:03:54 +0000
commitb27961e48d83203e699905b339d2f290c8379cc2 (patch)
tree44922a462b03a109a464e7e0bb6ce0a886644bf3 /release.sh
parentscanner: Fix undefined behavior around qsort (diff)
downloadwayland-b27961e48d83203e699905b339d2f290c8379cc2.tar
wayland-b27961e48d83203e699905b339d2f290c8379cc2.tar.gz
wayland-b27961e48d83203e699905b339d2f290c8379cc2.tar.bz2
wayland-b27961e48d83203e699905b339d2f290c8379cc2.tar.lz
wayland-b27961e48d83203e699905b339d2f290c8379cc2.tar.xz
wayland-b27961e48d83203e699905b339d2f290c8379cc2.tar.zst
wayland-b27961e48d83203e699905b339d2f290c8379cc2.zip
release.sh: Don't push *all* tags
Rather than trying to push all possible tags just push the one created for that release. Signed-off-by: Marius Vlad <marius.vlad@collabora.com>
Diffstat (limited to 'release.sh')
-rwxr-xr-xrelease.sh5
1 files changed, 4 insertions, 1 deletions
diff --git a/release.sh b/release.sh
index 697bf40..8e843f5 100755
--- a/release.sh
+++ b/release.sh
@@ -49,6 +49,9 @@ sha256="$(cd $build_dir/meson-dist && sha256sum $archive_name)"
sha512="$(cd $build_dir/meson-dist && sha512sum $archive_name)"
archive_url="https://gitlab.freedesktop.org/wayland/$name/-/releases/$version/downloads/$archive_name"
announce_path="$build_dir/meson-dist/$name-$version-announce.eml"
+current_branch=$(git branch --show-current)
+remote_name=$(git config --get branch.${current_branch}.remote)
+
cat >"$announce_path" <<EOF
To: <wayland-devel@lists.freedesktop.org>
Subject: [ANNOUNCE] $name $version
@@ -72,5 +75,5 @@ if [ "$answer" != "y" ]; then
fi
git tag -s -m "$version" "$version"
-git push --tags
+git push "$remote_name" "$version"
glab release create "$version" "$archive_path"* --notes ""