mirror of
https://github.com/okhsunrog/vpnhide.git
synced 2026-04-28 06:31:27 +00:00
ci(release): use changelog.md section as release notes body
Extract the current tag's section from update-json/changelog.md with awk and pass it as body_path to softprops/action-gh-release. Keeping generate_release_notes=true so GitHub still appends the auto PR list and "Full Changelog" link below our handwritten summary.
This commit is contained in:
parent
d99485a9fb
commit
9c13c761a3
1 changed files with 11 additions and 0 deletions
11
.github/workflows/ci.yml
vendored
11
.github/workflows/ci.yml
vendored
|
|
@ -199,16 +199,27 @@ jobs:
|
|||
if: startsWith(github.ref, 'refs/tags/v')
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v6
|
||||
|
||||
- name: Download all artifacts
|
||||
uses: actions/download-artifact@v8
|
||||
with:
|
||||
path: dist/
|
||||
merge-multiple: true
|
||||
|
||||
- name: Extract release notes from changelog
|
||||
run: |
|
||||
TAG="${{ github.ref_name }}"
|
||||
awk -v t="^## ${TAG}\$" '$0~t{flag=1;next} /^## v/{flag=0} flag' \
|
||||
update-json/changelog.md > release-notes.md
|
||||
echo "=== release-notes.md ==="
|
||||
cat release-notes.md
|
||||
|
||||
- name: Create release
|
||||
uses: softprops/action-gh-release@v2
|
||||
with:
|
||||
tag_name: ${{ github.ref_name }}
|
||||
body_path: release-notes.md
|
||||
generate_release_notes: true
|
||||
files: |
|
||||
dist/*.zip
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue