Skip to content

use softprops/action-gh-release #9

use softprops/action-gh-release

use softprops/action-gh-release #9

name: Create GitHub Release
on:
push:
tags:
- "v*"
jobs:
create-release:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Extract Release Notes
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
- name: Release
uses: softprops/action-gh-release@v2
with:
body_path: ${{ github.workspace }}-RELEASE_NOTES.txt