Release v1.0.1
This commit is contained in:
+8
-10
@@ -51,19 +51,17 @@ fi
|
||||
echo "Pushing to origin..."
|
||||
git push origin main
|
||||
|
||||
# --- Git tag ---
|
||||
# --- Git tag & Gitea release ---
|
||||
tag="v${new_version}"
|
||||
echo "Creating tag ${tag}..."
|
||||
git tag -a "${tag}" -m "Release ${tag}"
|
||||
git push origin "${tag}"
|
||||
|
||||
# --- Gitea release ---
|
||||
echo ""
|
||||
|
||||
# Check if release already exists
|
||||
if tea release list -o simple 2>/dev/null | grep -q "^${tag}"; then
|
||||
echo "Warning: Release ${tag} already exists on Gitea, skipping release creation."
|
||||
if git tag -l "${tag}" | grep -q "^${tag}$"; then
|
||||
echo "Warning: Tag ${tag} already exists, skipping tag, push, and release creation."
|
||||
else
|
||||
echo "Creating tag ${tag}..."
|
||||
git tag -a "${tag}" -m "Release ${tag}"
|
||||
git push origin "${tag}"
|
||||
|
||||
echo ""
|
||||
echo "Creating Gitea release..."
|
||||
|
||||
# Generate release notes from git log since last tag
|
||||
|
||||
Reference in New Issue
Block a user