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 124
           path: |
125 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 127
       - name: Upload to GitHub Release
133 128
         uses: softprops/action-gh-release@v2
134 129
         with:
135
-          body_path: CHANGELOG.md
136 130
           files: |
137 131
             ${{ matrix.job.goos}}-${{ matrix.job.platform }}.${{matrix.job.file_ext}}
138 132
         #          tag_name: ${{ env.LATEST_TAG }}
139 133
         env:
140 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 141
   docker:
143 142
     name: Push Docker Image
144 143
     needs: build