tide/.github/workflows/release.yml
dependabot[bot] 7f41dd24d8
Bump actions/checkout from 3 to 4 (#439)
Bumps [actions/checkout](https://github.com/actions/checkout) from 3 to 4.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v3...v4)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-09-08 14:34:51 -07:00

37 lines
807 B
YAML

---
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