Skip to content

Commit 939043f

Browse files
CI: Reuse changelog entries for release notes
1 parent b6abf10 commit 939043f

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

.github/workflows/ci.yml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,6 +158,11 @@ jobs:
158158
name: ${{matrix.artifact-folder}}
159159
path: binary.tar
160160

161+
- name: Generate release notes from changelog (TEST!!!!!)
162+
run: |
163+
sed -e "/^## 1.54.0/,/^## / ! d" CHANGELOG.md | head -n -2 > RELEASE.md
164+
cat RELEASE.md
165+
161166
package:
162167
needs:
163168
- build
@@ -300,13 +305,18 @@ jobs:
300305
name: "Latest master"
301306
files: rescript-vscode-latest-master.vsix
302307

308+
- name: Generate release notes from changelog
309+
if: startsWith(github.ref, 'refs/tags/')
310+
run: |
311+
sed -e "/^## ${{ steps.tag_name.outputs.tag }}/,/^## / ! d" CHANGELOG.md | head -n -2 > RELEASE.md
312+
303313
- name: Publish release version to GitHub
304314
if: startsWith(github.ref, 'refs/tags/')
305315
uses: softprops/action-gh-release@v2
306316
with:
307317
token: "${{ secrets.GITHUB_TOKEN }}"
308318
prerelease: false
309-
generate_release_notes: true
319+
body_path: RELEASE.md
310320
name: ${{ steps.tag_name.outputs.tag }}
311321
files: rescript-vscode-${{ steps.tag_name.outputs.tag }}.vsix
312322

0 commit comments

Comments
 (0)