feat(ci): add workflows for automated releases and nightly builds

- Add workflows for nightly builds and automated releases using Gitea
- Introduce scripts for version management, release ID retrieval, and
  asset uploads
- Update changelog generation and conflict handling mechanisms
- Improve release automation with semantic versioning support
This commit is contained in:
2025-05-11 14:14:59 +02:00
parent ee66a0ed2c
commit 078948fda1
10 changed files with 743 additions and 4 deletions

View File

@@ -0,0 +1,21 @@
#!/usr/bin/env bash
set -euo pipefail
# Stelle sicher, dass wir im Projektverzeichnis sind
ROOT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
cd "$ROOT_DIR"
PYPROJECT="pyproject.toml"
VERSION_FILE="VERSION"
# Extrahiere die Version mit grep + sed (keine externen Abhängigkeiten nötig)
VERSION=$(grep -E '^version\s*=' "$PYPROJECT" | head -n1 | sed -E 's/.*=\s*"([^"]+)".*/\1/')
if [[ -z "$VERSION" ]]; then
echo "❌ Version konnte nicht aus $PYPROJECT gelesen werden."
exit 1
fi
printf "%s" "$VERSION" > "$VERSION_FILE"
echo "✅ Version synchronisiert: $VERSION$VERSION_FILE"