2
0
Эх сурвалжийг харах

ci: update release changelog on publish

[skip ci]
Nicolas Giard 3 жил өмнө
parent
commit
0bc93e9792

+ 17 - 0
.github/workflows/build.yml

@@ -328,4 +328,21 @@ jobs:
         docker push ghcr.io/requarks/wiki:$MAJOR
         docker push ghcr.io/requarks/wiki:$MAJORMINOR
         docker push ghcr.io/requarks/wiki:latest
+        
+    - name: Generate Changelog
+      id: changelog
+      uses: Requarks/changelog-action@v1
+      with:
+        token: ${{ github.token }}
+        tag: ${{ github.ref_name }}
+        writeToFile: false
+
+    - name: Update GitHub Release
+      uses: ncipollo/release-action@v1
+      with:
+        allowUpdates: true
+        draft: false
+        name: ${{ github.ref_name }}
+        body: ${{ steps.changelog.outputs.changes }}
+        token: ${{ github.token }}