feat: 支持CI自动发布Release时自动编写changelog

Signed-off-by: gfdgd_xi <3025613752@qq.com>
This commit is contained in:
2026-11-12 13:22:07 +08:00
parent 251559cabd
commit 89f7da706b
5 changed files with 65 additions and 24 deletions
+13 -5
View File
@@ -143,12 +143,20 @@ jobs:
sshpass -p "$UPASSWD" rsync -e "ssh -p $UPORT" $tarName $UUSERS@$UHOST:$UPATH
sshpass -p "$UPASSWD" ssh $UUSERS@$UHOST -p $UPORT $UPROGRAM ${{ inputs.gxde-codename-upload }} $UPATH/$tarName > /dev/null
- name: Create Release
uses: softprops/action-gh-release@v1
- name: Create changelog text
id: changelog
uses: loopwerk/tag-changelog@v1
if: startsWith(github.ref, 'refs/tags/')
with:
token: ${{ secrets.RELEASE_TOCKEN_GITHUB }}
include_commit_body: true
- name: Create Release
uses: softprops/action-gh-release@v2
if: startsWith(github.ref, 'refs/tags/')
env:
GITHUB_TOKEN: ${{ secrets.RELEASE_TOCKEN_GITHUB }}
with:
files: |
*.deb
generate_release_notes: true
body: ${{ steps.changelog.outputs.changes }}
env:
GITHUB_TOKEN: ${{ secrets.RELEASE_TOCKEN_GITHUB }}