Skip to content

Commit 371212a

Browse files
committed
refactor(script): include apk link in the git release notification
1 parent 85d77b1 commit 371212a

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

.github/scripts/notify_discord_release.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,9 @@ def main():
2424
# Create pub.dev URL
2525
pubdev_url = f"https://pub.dev/packages/{package_name}/versions/{release_version}"
2626

27+
# Create APK download URL
28+
apk_url = f"https://github.com/{repo_name}/releases/download/{release_version}/Stadata_Example_v{release_version}.apk"
29+
2730
# Process release notes (limit length for Discord)
2831
release_notes = ""
2932
if release_body:
@@ -42,6 +45,7 @@ def main():
4245
f"🔗 **Links:**\n"
4346
f"• [GitHub Release]({release_url})\n"
4447
f"• [pub.dev Package]({pubdev_url})\n"
48+
f"• [📱 Example APK]({apk_url})\n"
4549
f"• [Installation Guide](https://pub.dev/packages/{package_name}/install)"
4650
f"{release_notes}\n\n"
4751
f"🛠️ **Quick Install:**\n"
@@ -79,6 +83,11 @@ def main():
7983
"name": "🔗 Quick Install",
8084
"value": f"```yaml\ndependencies:\n {package_name}: ^{release_version}\n```",
8185
"inline": False
86+
},
87+
{
88+
"name": "📱 Example App APK",
89+
"value": f"[📥 Download Stadata_Example_v{release_version}.apk]({apk_url})",
90+
"inline": False
8291
}
8392
],
8493
"footer": {

0 commit comments

Comments
 (0)