chore: update changelog for version 0.5.4 release (#52) #4
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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/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 |