Skip to content

Commit 6d0cde7

Browse files
committed
Enhance GitHub release creation with detailed release notes and dependency instructions
1 parent 6e8410a commit 6d0cde7

1 file changed

Lines changed: 36 additions & 2 deletions

File tree

.github/workflows/publish-maven.yml

Lines changed: 36 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,9 +82,43 @@ jobs:
8282
- uses: actions/checkout@v6
8383
- name: Create GitHub Release
8484
run: |
85-
gh release create "${{ needs.publish-maven.outputs.version }}" \
85+
VERSION="${{ needs.publish-maven.outputs.version }}"
86+
GROUP_ID="io.github.copilot-community-sdk"
87+
ARTIFACT_ID="copilot-sdk"
88+
89+
RELEASE_NOTES=$(cat <<EOF
90+
## Installation
91+
92+
### Maven
93+
\`\`\`xml
94+
<dependency>
95+
<groupId>${GROUP_ID}</groupId>
96+
<artifactId>${ARTIFACT_ID}</artifactId>
97+
<version>${VERSION}</version>
98+
</dependency>
99+
\`\`\`
100+
101+
### Gradle (Kotlin DSL)
102+
\`\`\`kotlin
103+
implementation("${GROUP_ID}:${ARTIFACT_ID}:${VERSION}")
104+
\`\`\`
105+
106+
### Gradle (Groovy DSL)
107+
\`\`\`groovy
108+
implementation '${GROUP_ID}:${ARTIFACT_ID}:${VERSION}'
109+
\`\`\`
110+
111+
📦 [View on Maven Central](https://central.sonatype.com/artifact/${GROUP_ID}/${ARTIFACT_ID}/${VERSION})
112+
113+
---
114+
115+
EOF
116+
)
117+
118+
gh release create "${VERSION}" \
86119
${{ github.event.inputs.prerelease == 'true' && '--prerelease' || '' }} \
87-
--title "Java SDK v${{ needs.publish-maven.outputs.version }}" \
120+
--title "Java SDK v${VERSION}" \
121+
--notes "${RELEASE_NOTES}" \
88122
--generate-notes \
89123
--target ${{ github.sha }}
90124
env:

0 commit comments

Comments
 (0)