Browse Source

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

lejianwen 1 year ago
parent
commit
ba46dbbf7e
1 changed files with 5 additions and 6 deletions
  1. 5 6
      .github/workflows/build.yml

+ 5 - 6
.github/workflows/build.yml

@@ -124,21 +124,20 @@ jobs:
124
           path: |
124
           path: |
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
128
-        run: npx changelogithub --output CHANGELOG.md # or changelogithub@0.12 if ensure the stable result
129
-        env:
130
-          GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
131
-
132
       - name: Upload to GitHub Release
127
       - name: Upload to GitHub Release
133
         uses: softprops/action-gh-release@v2
128
         uses: softprops/action-gh-release@v2
134
         with:
129
         with:
135
-          body_path: CHANGELOG.md
136
           files: |
130
           files: |
137
             ${{ matrix.job.goos}}-${{ matrix.job.platform }}.${{matrix.job.file_ext}}
131
             ${{ matrix.job.goos}}-${{ matrix.job.platform }}.${{matrix.job.file_ext}}
138
         #          tag_name: ${{ env.LATEST_TAG }}
132
         #          tag_name: ${{ env.LATEST_TAG }}
139
         env:
133
         env:
140
           GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
134
           GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
141
 
135
 
136
+      - name: Generate Changelog
137
+        run: npx changelogithub # or changelogithub@0.12 if ensure the stable result
138
+        env:
139
+          GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
140
+
142
   docker:
141
   docker:
143
     name: Push Docker Image
142
     name: Push Docker Image
144
     needs: build
143
     needs: build