release.sh : tag annoté avec patchnote (affiché par le panneau MAJ)
This commit is contained in:
Executable → Regular
+3
-3
@@ -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 <version> (ex. 0.2.0)}"
|
||||
VERSION="${1:?Usage : ./scripts/release.sh <version> [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"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user