diff --git a/scripts/release.sh b/scripts/release.sh old mode 100755 new mode 100644 index 59a5475..215d3b8 --- a/scripts/release.sh +++ b/scripts/release.sh @@ -2,11 +2,11 @@ # Publie une version d'OhmStreaming : # bump de version → commit + tag git → build de l'image Docker → push registre Gitea. # -# Usage : ./scripts/release.sh 0.2.0 +# Usage : ./scripts/release.sh 0.2.0 ["patchnote multi-lignes"] # Option : OHM_REGISTRY=git.lanro.eu/roman/ohm_streaming (défaut) pour viser un autre registre. set -euo pipefail -VERSION="${1:?Usage : ./scripts/release.sh (ex. 0.2.0)}" +VERSION="${1:?Usage : ./scripts/release.sh [patchnote] (ex : 0.2.0)}" REGISTRY="${OHM_REGISTRY:-git.lanro.eu/roman/ohm_streaming}" cd "$(dirname "$0")/.." @@ -30,7 +30,7 @@ git add pyproject.toml uv.lock git commit -m "v$VERSION" echo "▶ 2/3 Tag et push git" -git tag "$TAG" +git tag -a "$TAG" -m "${2:-$TAG}" git push origin HEAD git push origin "$TAG"