Skip to content

Commit

Permalink
Let GitHub generate release notes
Browse files Browse the repository at this point in the history
Analogue to how we're doing it for the hyades repository already.

Signed-off-by: nscuro <[email protected]>
  • Loading branch information
nscuro committed Oct 23, 2023
1 parent 006b5d2 commit c795b54
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 13 deletions.
2 changes: 0 additions & 2 deletions .github/default-release-notes.md

This file was deleted.

14 changes: 14 additions & 0 deletions .github/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
changelog:
categories:
- title: Enhancements 🚀
labels:
- enhancement
- title: Bug Fixes 🐛
labels:
- bug
- title: Dependency Updates 🤖
labels:
- dependencies
- title: Other Changes
labels:
- "*"
9 changes: 0 additions & 9 deletions .github/workflows/ci-publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -70,15 +70,6 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.BOT_RELEASE_TOKEN }}
run: |-
cat << EOF >> .github/default-release-notes.md
\`\`\`text
$(cat target/checksums.txt)
\`\`\`
EOF
gh release edit ${{ needs.read-version.outputs.version }} \
--notes-file ".github/default-release-notes.md"
gh release upload ${{ needs.read-version.outputs.version }} \
--clobber \
target/dependency-track-apiserver.jar \
Expand Down
3 changes: 1 addition & 2 deletions .github/workflows/ci-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -97,8 +97,7 @@ jobs:
run: |-
gh release create "${{ needs.prepare-release.outputs.version }}" \
--target "${{ needs.prepare-release.outputs.release-branch }}" \
--title "${{ needs.prepare-release.outputs.version }}" \
--notes-file ".github/default-release-notes.md"
--generate-notes
post-release:
runs-on: ubuntu-latest
Expand Down

0 comments on commit c795b54

Please sign in to comment.