Skip to content

v6

v6 #26

Workflow file for this run

---
name: release
on:
push:
tags:
- v[0-9]+.[0-9]+.[0-9]+
permissions:
contents: write
jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Create higher level tags
uses: vweevers/additional-tags-action@v2
# Remove first five lines
# Print until we hit a ## header
# Remove last two lines
# Replace [#79][] with #79
# Output to /tmp/github_release.md
- name: Generate release notes
run: >
tail --lines=+5 "$GITHUB_WORKSPACE/CHANGELOG.md" |
sed '/^## /q' |
head --lines=-2 |
sed -E 's/\[(#[0-9]*)\]\[\]/\1/g'
>/tmp/github_release.md
- uses: softprops/action-gh-release@v1
with:
body_path: /tmp/github_release.md