Skip to content

chore: update version to 0.5.5 in pesde.toml and add changelog entrie… #5

chore: update version to 0.5.5 in pesde.toml and add changelog entrie…

chore: update version to 0.5.5 in pesde.toml and add changelog entrie… #5

Workflow file for this run

name: Create Release
on:
push:
tags:
- 'v*.*.*'
jobs:
release:
name: Create GitHub Release
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Extract changelog for this version
id: changelog
run: |
TAG="${GITHUB_REF_NAME}"
CHANGELOG="docs/docs/blog/changelog.md"
BODY=$(awk "
/^## \`${TAG}\`/ { found=1; next }
found && /^## \`v[0-9]+\.[0-9]+\.[0-9]+\`/ { exit }
found { print }
" "$CHANGELOG")
echo "--- Extracted body ---"
echo "$BODY"
echo "body<<EOF" >> $GITHUB_OUTPUT
echo "$BODY" >> $GITHUB_OUTPUT
echo "EOF" >> $GITHUB_OUTPUT
- name: Create GitHub Release
uses: softprops/action-gh-release@v2
with:
body: ${{ steps.changelog.outputs.body }}
make_latest: true