Skip to content

Merge pull request #8 from scoobynko/remove-component-description-ref… #2

Merge pull request #8 from scoobynko/remove-component-description-ref…

Merge pull request #8 from scoobynko/remove-component-description-ref… #2

Workflow file for this run

name: Create Release
on:
push:
tags:
- 'v*'
jobs:
release:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v4
- name: Extract version from tag
id: version
run: echo "VERSION=${GITHUB_REF#refs/tags/v}" >> $GITHUB_OUTPUT
- name: Extract changelog for this version
id: changelog
run: |
VERSION="${{ steps.version.outputs.VERSION }}"
# Extract the section for this version from CHANGELOG.md
awk "/## \[${VERSION}\]/,/## \[/" CHANGELOG.md | sed '/## \['"${VERSION}"'\]/d; /## \[/d' > release_notes.md
- name: Create Release
uses: softprops/action-gh-release@v1
with:
name: Release v${{ steps.version.outputs.VERSION }}
body_path: release_notes.md
draft: false
prerelease: false
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}