Skip to content

Commit 11cf6f7

Browse files
committed
Automatically create GitHub releases
1 parent cd05da1 commit 11cf6f7

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
name: Main
2+
3+
on: push
4+
5+
jobs:
6+
create-release:
7+
if: startsWith(github.ref, 'refs/tags/v')
8+
runs-on: ubuntu-latest
9+
steps:
10+
- name: Checkout
11+
uses: actions/checkout@v4
12+
- name: Extract Release Notes
13+
run: awk -v ver="${{ github.ref_name }}" '/^## / { if (p) { exit }; if ("v"$2 == ver) { p=1; next } } p && NF' RELEASE.md > ${{ github.workspace }}-RELEASE_NOTES.txt
14+
- name: Release
15+
uses: softprops/action-gh-release@v2
16+
with:
17+
body_path: ${{ github.workspace }}-RELEASE_NOTES.txt

0 commit comments

Comments
 (0)