fix(release): improve changelog generation and add debug information

This commit is contained in:
PandaDEV 2024-12-25 21:16:23 +10:00
parent 18ca53ef04
commit dc34912895
No known key found for this signature in database
GPG key ID: 13EFF9BAF70EE75C

View file

@ -243,7 +243,14 @@ jobs:
id: release_body id: release_body
run: | run: |
VERSION="${{ needs.prepare.outputs.version }}" VERSION="${{ needs.prepare.outputs.version }}"
CHANGES=$(git log $(git describe --tags --abbrev=0)..HEAD --pretty=format:"- %s") echo "Debug: Listing tags"
git tag -l
echo "Debug: Getting latest tag"
git describe --tags --abbrev=0 || echo "No tags found"
echo "Debug: Generating changelog"
CHANGES=$(git log "$(git describe --tags --abbrev=0 2>/dev/null || echo HEAD^)" HEAD --pretty=format:"- %s" || echo "No changelog available")
echo "Debug: Changelog content:"
echo "$CHANGES"
# Calculate hashes with corrected paths # Calculate hashes with corrected paths
WINDOWS_ARM_HASH=$(sha256sum "artifacts/windows-arm64-binaries/Qopy-${VERSION}_arm64.msi" | awk '{ print $1 }') WINDOWS_ARM_HASH=$(sha256sum "artifacts/windows-arm64-binaries/Qopy-${VERSION}_arm64.msi" | awk '{ print $1 }')