fix: replace release-drafter with custom version extraction in release workflow
Some checks failed
Build Release / build (Linux/X11) (pull_request) Failing after 1m36s
Build Release / build (Windows Desktop) (pull_request) Failing after 1m37s
Build Release / build (macOS) (pull_request) Failing after 1m37s

This commit is contained in:
2026-03-15 22:22:35 +01:00
parent 82e3ca5182
commit de51310f94

View File

@@ -19,16 +19,11 @@ jobs:
- name: Extract version from CHANGELOG
id: changelog
uses: release-drafter/release-drafter@v5
with:
changelog-file: CHANGELOG.md
template: |
name: ${{ version }}
body: |
${{ description }}
token: ${{ secrets.GITEA_TOKEN }}
env:
GHE_HOST: ${{ SERVER_URL }}
run: |
# Extract first non-empty line that starts with a version (e.g., v1.2.3 or 1.2.3)
LATEST=$(grep -E '^[v]?[0-9]+\.[0-9]+\.[0-9]+' CHANGELOG.md | head -n1)
echo "Latest version found: $LATEST"
echo "version=$LATEST" >> $GITHUB_OUTPUT
# Create Release also creates an Tag
# - name: Create git tag