File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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 :
You can’t perform that action at this time.
0 commit comments