Просмотр исходного кода

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

lejianwen 1 год назад
Родитель
Сommit
8b00b919ad
1 измененных файлов с 2 добавлено и 1 удалено
  1. 2 1
      .github/workflows/build.yml

+ 2 - 1
.github/workflows/build.yml

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