buffybox/release.sh

29 lines
635 B
Bash
Raw Permalink Normal View History

2023-10-08 20:47:40 +02:00
#!/bin/bash
if [[ -z "$1" ]]; then
echo "Error: No version number provided"
exit 1
fi
if [[ -z "$2" ]]; then
echo "Error: No GitLab API token provided"
exit 1
fi
if ! grep "## $1" CHANGELOG.md > /dev/null; then
echo "Error: No entry in CHANGELOG.md for version $1"
exit 1
fi
2025-04-16 13:19:01 +03:00
if ! grep -E "^\s*version:\s*'$1'" meson.build > /dev/null; then
2024-03-28 13:27:01 +01:00
echo "Error: Version $1 differs from version in buffyboard/meson.build"
exit 1
fi
2023-10-08 20:47:40 +02:00
git tag "$1"
git push --tags
./archive.sh "$2"
2025-04-16 13:19:01 +03:00
echo "Now create a release for https://gitlab.postmarketos.org/postmarketOS/buffybox-/tags/$1 and attach the uploaded archive"