|
40 | 40 | with: |
41 | 41 | java-version: '17' |
42 | 42 | distribution: 'temurin' |
43 | | - server-id: ossrh |
44 | | - server-username: MAVEN_USERNAME |
45 | | - server-password: MAVEN_PASSWORD |
46 | | - cache: maven |
47 | 43 |
|
48 | 44 | - name: Publish package |
49 | | - run: mvn |
| 45 | + run: ./mvnw |
50 | 46 | --batch-mode |
51 | 47 | --update-snapshots |
52 | 48 | --file pom.xml |
@@ -120,8 +116,9 @@ jobs: |
120 | 116 | prompt = ( |
121 | 117 | f"Generate concise release notes for version {current_tag}.\n\n" |
122 | 118 | f"Commits since {prev_tag}:\n{commits}\n\n" |
123 | | - "Format the output as markdown with sections for New Features, Bug Fixes, " |
124 | | - "and Other Changes (only include sections that have relevant commits). " |
| 119 | + "Format the output as markdown with sections if present for New Features, Bug Fixes, " |
| 120 | + "Documentations, Dependency Updates, Test Improvements, Build and Workflow Enhancements " |
| 121 | + "and Other Changes(excludes Full Changelog).\n\n" |
125 | 122 | "Be concise and clear." |
126 | 123 | ) |
127 | 124 |
|
@@ -154,20 +151,25 @@ jobs: |
154 | 151 | if [ ! -f "$NOTES_FILE" ]; then |
155 | 152 | printf "# Release Notes\n\n" > "$NOTES_FILE" |
156 | 153 | fi |
| 154 | + |
| 155 | + FULL_CHANGELOG="**Full Changelog**: $GITHUB_SERVER_URL/$GITHUB_REPOSITORY/compare/$PREV_TAG...$CURRENT_TAG" |
| 156 | + |
157 | 157 | printf "## v%s\n\n%s\n\n" "$CURRENT_TAG" "$SUMMARY" >> "$NOTES_FILE" |
158 | | -
|
| 158 | + printf "%s" "$FULL_CHANGELOG" >> "$NOTES_FILE" |
| 159 | + |
159 | 160 | # Write the current release notes to a temp file for the Create Release step |
160 | | - printf "%s" "$SUMMARY" > /tmp/current-release-notes.md |
| 161 | + printf "%s\n\n" "$SUMMARY" > /tmp/current-release-notes.md |
| 162 | + printf "%s" "$FULL_CHANGELOG" >> /tmp/current-release-notes.md |
161 | 163 |
|
162 | 164 | echo "Release notes generated and appended to $NOTES_FILE" |
163 | 165 |
|
164 | 166 | - name: Create Release |
165 | 167 | run: | |
166 | | - if gh release view "v${{ inputs.revision }}" >/dev/null 2>&1; then |
167 | | - echo "Release v${{ inputs.revision }} already exists, skipping." |
| 168 | + if gh release view "${{ inputs.revision }}" >/dev/null 2>&1; then |
| 169 | + echo "Release ${{ inputs.revision }} already exists, skipping." |
168 | 170 | else |
169 | 171 | gh release create ${{ inputs.revision }} \ |
170 | | - --title "v${{ inputs.revision }}" \ |
| 172 | + --title "${{ inputs.revision }}" \ |
171 | 173 | --notes-file /tmp/current-release-notes.md \ |
172 | 174 | --latest |
173 | 175 | fi |
|
0 commit comments