dev: bump to 0.1.72-dev – Autoplay-Setting, Moflix Hoster-Dialog, Update-Hinweis im Hauptmenue
This commit is contained in:
24
scripts/hooks/post-commit
Executable file
24
scripts/hooks/post-commit
Executable file
@@ -0,0 +1,24 @@
|
||||
#!/bin/bash
|
||||
# post-commit: ZIP bauen, pushen, Gitea-Release veröffentlichen (nur dev-Branch)
|
||||
|
||||
branch=$(git symbolic-ref --short HEAD 2>/dev/null)
|
||||
[[ "$branch" != "dev" ]] && exit 0
|
||||
|
||||
root=$(git rev-parse --show-toplevel)
|
||||
cd "$root"
|
||||
|
||||
# ZIP bauen
|
||||
echo "[hook] Baue ZIP..."
|
||||
bash scripts/build_kodi_zip.sh
|
||||
|
||||
# Push
|
||||
echo "[hook] Push origin dev..."
|
||||
git push origin dev
|
||||
|
||||
# Gitea Release
|
||||
if [[ -n "$GITEA_TOKEN" ]]; then
|
||||
echo "[hook] Veröffentliche Gitea-Release..."
|
||||
bash scripts/publish_gitea_release.sh
|
||||
else
|
||||
echo "[hook] GITEA_TOKEN nicht gesetzt – Gitea-Release übersprungen"
|
||||
fi
|
||||
Reference in New Issue
Block a user