@@ -152,6 +152,21 @@ jobs:
152152 env :
153153 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
154154
155+ - name : Get existing release body (for tag releases)
156+ if : steps.release_info.outputs.is_nightly == 'false'
157+ id : existing_release
158+ run : |
159+ # Try to get existing release body
160+ EXISTING_BODY=$(gh release view ${{ steps.release_info.outputs.tag_name }} --json body -q .body 2>/dev/null || echo "")
161+ if [ -n "$EXISTING_BODY" ]; then
162+ echo "has_existing=true" >> $GITHUB_OUTPUT
163+ echo "$EXISTING_BODY" > existing_body.md
164+ else
165+ echo "has_existing=false" >> $GITHUB_OUTPUT
166+ fi
167+ env :
168+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
169+
155170 - name : Generate release body
156171 id : release_body
157172 run : |
@@ -193,15 +208,24 @@ jobs:
193208 ⚠️ **Note**: This is a nightly build and may contain unstable features or bugs.
194209 EOF
195210 else
196- cat << 'EOF' > release_body.md
197- 🚀 **Release Build**
211+ # For tag releases, append build info to existing body
212+ if [[ "${{ steps.existing_release.outputs.has_existing }}" == "true" ]]; then
213+ # Append to existing body
214+ cat existing_body.md > release_body.md
215+ echo "" >> release_body.md
216+ echo "---" >> release_body.md
217+ echo "" >> release_body.md
218+ fi
219+
220+ # Add build information
221+ cat << 'EOF' >> release_body.md
222+ ## 📦 Downloads (Build ${{ github.sha }})
198223
199- **Release Information:**
200- - Version: ${{ steps.release_info.outputs.tag_name }}
201- - Build Date: ${{ github.event.head_commit.timestamp }}
224+ **Build Information:**
202225 - Commit: ${{ github.sha }}
226+ - Build Date: ${{ github.event.head_commit.timestamp }}
203227
204- ## 📦 Downloads
228+ ### Available Downloads
205229 - **Linux**: openGemini-studio-linux-amd64.tar.gz
206230 - **Windows**: openGemini-studio-windows-amd64.zip
207231 - **macOS**: openGemini-studio-darwin-universal.tar.gz
@@ -223,9 +247,6 @@ jobs:
223247 tar -xzf openGemini-studio-darwin-universal.tar.gz
224248 open openGemini-studio.app
225249 ```
226-
227- ## 📝 Changelog
228- Please see the commit history for detailed changes.
229250 EOF
230251 fi
231252
0 commit comments