Enhance release process: require clean worktree for publishing, update tagging behavior, and improve UI for audio file uploads
This commit is contained in:
@@ -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" .
|
||||
|
||||
Reference in New Issue
Block a user