Skip to content

Commit a48bb6d

Browse files
committed
fix: release workflow to use release.md as body instead of tag annotation to avoid stripping markdown headings
1 parent 0ece8c7 commit a48bb6d

File tree

2 files changed

+23
-8
lines changed

2 files changed

+23
-8
lines changed

.github/workflows/release_build.yml

Lines changed: 20 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ jobs:
5050
if-no-files-found: error
5151

5252
# Optional: Upload to GitHub Release (if triggered by tag)
53-
- name: Fetch tag annotation
53+
- name: Fetch tag annotation and release notes
5454
if: startsWith(github.ref, 'refs/tags/')
5555
id: tag_data
5656
run: |
@@ -60,12 +60,25 @@ jobs:
6060
# Extract tag annotation message
6161
TAG_MESSAGE=$(git tag -l --format='%(contents)' ${{ github.ref_name }})
6262
63-
# Output the tag message for use in releases
63+
# Also read the release.md file if it exists
64+
if [ -f "docs/release.md" ]; then
65+
RELEASE_NOTES=$(cat docs/release.md)
66+
else
67+
RELEASE_NOTES="$TAG_MESSAGE"
68+
fi
69+
70+
# Output both for use in releases
6471
{
6572
echo 'annotation<<EOF'
6673
echo "$TAG_MESSAGE"
6774
echo 'EOF'
6875
} >> $GITHUB_OUTPUT
76+
77+
{
78+
echo 'release_notes<<EOF'
79+
echo "$RELEASE_NOTES"
80+
echo 'EOF'
81+
} >> $GITHUB_OUTPUT
6982
7083
# Replaced actions/create-release and actions/upload-release-asset
7184
- name: Create GitHub Release
@@ -75,9 +88,9 @@ jobs:
7588
# Use the tag name from the Git ref
7689
tag: ${{ github.ref_name }}
7790
# Use the tag name for the release name
78-
name: Release ${{ github.ref_name }}
79-
# Use the tag annotation message as the release body
80-
body: ${{ steps.tag_data.outputs.annotation }}
91+
name: v${{ github.ref_name }}
92+
# Use the release.md content as the release body (preferred) or fallback to tag annotation
93+
body: ${{ steps.tag_data.outputs.release_notes }}
8194
# Path to the artifact to upload
8295
artifacts: app/build/outputs/apk/release/app-release.apk
8396
# The action defaults to using github.token, which is fine with permissions set
@@ -109,13 +122,13 @@ jobs:
109122
cat > release_body.md << 'EOF'
110123
**Synced from main repo release: ${{ github.ref_name }}**
111124
112-
${{ steps.tag_data.outputs.annotation }}
125+
${{ steps.tag_data.outputs.release_notes }}
113126
EOF
114127
115128
# Create release using GitHub CLI
116129
gh release create "${{ steps.version_info.outputs.xposed_tag }}" \
117130
--repo "Xposed-Modules-Repo/com.wizpizz.onepluspluslauncher" \
118-
--title "Release ${{ steps.version_info.outputs.xposed_tag }}" \
131+
--title "v${{ github.ref_name }}" \
119132
--notes-file "release_body.md" \
120133
"app/build/outputs/apk/release/app-release.apk" || \
121134
# If release exists, upload to existing release

docs/release.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,12 @@ If you are using an older version of the launcher, please use an older release,
1919
* Misc:
2020
* Several UI improvements.
2121

22+
[Full Changelog](https://github.com/wizpizz/OnePlusPlusLauncher/compare/v1.1.0...v1.2.0)
23+
2224
## ⬇️ Installation
2325

2426
1. Make sure your device is rooted and you have LSPosed installed.
25-
2. Download the latest release APK from the assets section below or simply [click here](https://github.com/Xposed-Modules-Repo/com.wizpizz.onepluspluslauncher/releases/download/v1.2.0/app-release.apk)
27+
2. Download the latest release APK from the assets section below or simply [click here](https://github.com/Xposed-Modules-Repo/com.wizpizz.onepluspluslauncher/releases/download/3-1.2.0/app-release.apk)
2628
3. Install the APK on your device.
2729
4. Enable the module in the LSPosed manager and make sure System Launcher is enabled in the scope settings.
2830
5. Restart System Launcher.

0 commit comments

Comments
 (0)