Skip to content

Commit 3fcf979

Browse files
committed
use softprops/action-gh-release
1 parent bf1dc86 commit 3fcf979

File tree

1 file changed

+6
-10
lines changed

1 file changed

+6
-10
lines changed

.github/workflows/create-github-release.yml

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -8,16 +8,12 @@ on:
88
jobs:
99
create-release:
1010
runs-on: ubuntu-latest
11-
12-
permissions:
13-
contents: write
14-
1511
steps:
16-
- name: Checkout Code
12+
- name: Checkout
1713
uses: actions/checkout@v4
18-
19-
- name: Create GitHub Release
20-
uses: ncipollo/release-action@v1
14+
- name: Extract Release Notes
15+
run: awk -v ver="${{ github.ref_name }}" '/^## / { if (p) { exit }; if ($2 == ver) { p=1; next } } p && NF' RELEASE.md > ${{ github.workspace }}-RELEASE_NOTES.txt
16+
- name: Release
17+
uses: softprops/action-gh-release@v2
2118
with:
22-
name: Mocha ${{ github.ref_name }}
23-
bodyFile: RELEASE.md
19+
body_path: ${{ github.workspace }}-RELEASE_NOTES.txt

0 commit comments

Comments
 (0)