Enhance release process: require clean worktree for publishing, update tagging behavior, and improve UI for audio file uploads

This commit is contained in:
2026-09-28 08:14:27 +02:00
parent 0f7d5e950c
commit cb16c77bad
7 changed files with 18 additions and 11 deletions
+6 -1
View File
@@ -32,6 +32,11 @@ if ! command -v git >/dev/null 2>&1; then
exit 1
fi
if [[ -n "$(git -C "$repo_root" status --porcelain)" ]]; then
echo "Commit or discard all staged, unstaged, and untracked changes before publishing." >&2
exit 1
fi
latest_version=""
while IFS= read -r candidate; do
if [[ "$candidate" =~ ^(0|[1-9][0-9]*)\.(0|[1-9][0-9]*)\.(0|[1-9][0-9]*)$ ]]; then
@@ -67,7 +72,7 @@ if git -C "$repo_root" show-ref --verify --quiet "refs/tags/$version"; then
exit 1
fi
git -C "$repo_root" tag "$version"
git -C "$repo_root" tag --annotate "$version" --message "Release $version" HEAD
cd "$repo_root"
docker build --tag "$image:$version" --tag "$image:latest" .