chore(changelog): up build.yml to generate changelog

This commit is contained in:
lejianwen
2024-12-22 14:04:23 +08:00
parent 51db63cf35
commit 3b8b8f37dd

View File

@@ -125,13 +125,14 @@ jobs:
${{ matrix.job.goos}}-${{ matrix.job.platform }}.${{matrix.job.file_ext}} ${{ matrix.job.goos}}-${{ matrix.job.platform }}.${{matrix.job.file_ext}}
- name: Generate Changelog - name: Generate Changelog
run: npx changelogithub # or changelogithub@0.12 if ensure the stable result run: npx changelogithub --output CHANGELOG.md # or changelogithub@0.12 if ensure the stable result
env: env:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
- name: Upload to GitHub Release - name: Upload to GitHub Release
uses: softprops/action-gh-release@v2 uses: softprops/action-gh-release@v2
with: with:
body_path: CHANGELOG.md
files: | files: |
${{ matrix.job.goos}}-${{ matrix.job.platform }}.${{matrix.job.file_ext}} ${{ matrix.job.goos}}-${{ matrix.job.platform }}.${{matrix.job.file_ext}}
# tag_name: ${{ env.LATEST_TAG }} # tag_name: ${{ env.LATEST_TAG }}