Skip to content

Commit 695bcd5

Browse files
committed
Add release notes generation
1 parent 04bf889 commit 695bcd5

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

.github/workflows/publish.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,12 +33,18 @@ jobs:
3333
OSSRH_PASSWORD: ${{ secrets.OSSRH_PASSWORD }}
3434
OSSRH_GPG_PASSPHRASE: ${{ secrets.OSSRH_GPG_PASSPHRASE }}
3535
run: ./mvnw -B deploy -Pdeploy
36+
- name: Create release notes
37+
run: |
38+
echo "# What's Changed" > release-notes.md
39+
git log "$(git describe --tags --abbrev=0)..HEAD" --format="- %s ([%h](https://github.com/sonallux/spotify-web-api/commit/%H))" >> release-notes.md
40+
cat release-notes.md
3641
- name: Create release on GitHub
3742
uses: softprops/action-gh-release@v1
3843
if: startsWith(github.ref, 'refs/tags/')
3944
env:
4045
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4146
with:
47+
body_path: release-notes.md
4248
files: |
4349
spotify-web-api-core/src/main/resources/spotify-web-api.yml
4450
spotify-web-api-generator-open-api/spotify-web-api-openapi.yml

0 commit comments

Comments
 (0)