feat: git-cliff for better release notes and changelogs
This commit is contained in:
1 parent
0b1f259cee
commit
14a5a9ca33
2 files changed
+113
-1
No files matched your search
@@ -105,12 +105,21 @@ jobs:
|
||||
with:
|
||||
path: artifacts
|
||||
|
||||
- name: generate changelog
|
||||
if: steps.check.outputs.exists == 'false'
|
||||
id: changelog
|
||||
uses: orhun/git-cliff-action@v4
|
||||
with:
|
||||
args: --latest --strip header
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
- name: create release
|
||||
if: steps.check.outputs.exists == 'false'
|
||||
run: |
|
||||
gh release create "${{ steps.version.outputs.tag }}" \
|
||||
--title "${{ steps.version.outputs.tag }}" \
|
||||
--generate-notes \
|
||||
--notes "${{ steps.changelog.outputs.content }}" \
|
||||
artifacts/mcl-*/*
|
||||
env:
|
||||
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
Reference in new issue
Block a user