Skip to content

Commit c1af1c9

Browse files
committed
ci/release: Automatically extract release notes
Extract release notes with parse-changelog and include them in the release.
1 parent a5ffc3f commit c1af1c9

File tree

1 file changed

+13
-2
lines changed

1 file changed

+13
-2
lines changed

.github/workflows/release.yml

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,12 +105,23 @@ jobs:
105105
with:
106106
name: restack-archive
107107

108+
- name: Install parse-changelog
109+
uses: taiki-e/install-action@v1
110+
with:
111+
112+
113+
- name: Extract changelog
114+
run: |
115+
REF=${{ github.ref }}
116+
VERSION=${REF#refs/tags/v}
117+
parse-changelog CHANGELOG.md "$VERSION" > ${{ github.workspace }}-CHANGELOG.txt
118+
108119
- name: Publish Release
109120
uses: softprops/action-gh-release@v1
110121
with:
111122
files: 'restack-*.tar.gz'
112-
env:
113-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
123+
body_path: ${{ github.workspace }}-CHANGELOG.txt
124+
token: ${{ secrets.GITHUB_TOKEN }}
114125

115126
- name: Publish Homebrew tap
116127
uses: Justintime50/homebrew-releaser@v1

0 commit comments

Comments
 (0)