Skip to content

Release

Release #22

name: Release
on:
workflow_run:
workflows: [CI]
branches: [main]
types: [completed]
jobs:
release:
runs-on: ubuntu-latest
if: ${{ github.event.workflow_run.conclusion == 'success' && startsWith(github.ref, 'refs/tags/') }}
steps:
- name: Checkout
uses: actions/checkout@v4
- uses: taiki-e/install-action@parse-changelog
- name: Generate Changelog
run: parse-changelog CHANGELOG.md > ${{ github.workspace }}-CHANGELOG.md
- name: Release
uses: softprops/action-gh-release@v1
with:
body_path: ${{ github.workspace }}-CHANGELOG.md