Skip to content

Release 1.49.6

Release 1.49.6 #17

Workflow file for this run

name: Prepare Release
on:
workflow_dispatch:
push:
tags:
- '*'
permissions:
contents: write
jobs:
prepare:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
token: ${{ secrets.GITHUB_TOKEN }}
- run: git fetch --tags -f
- name: Resolve version
id: vars
run: |
TAG_NAME=$(git describe --tags --abbrev=0)
VERSION=${TAG_NAME#v}
echo "TAG_NAME=$TAG_NAME" >> $GITHUB_ENV
echo "VERSION=$VERSION" >> $GITHUB_ENV
echo "Version: $VERSION"
- name: Generate CHANGELOG content
run: |
# Extract the changelog content for this version, excluding the version header
CHANGELOG_CONTENT=$(sed -n "/## \[$VERSION\]/,/## \[/p" CHANGELOG.md | sed '$ d' | tail -n +2)
# Store in environment file for the release step
echo "CHANGELOG_CONTENT<<EOF" >> $GITHUB_ENV
echo "$CHANGELOG_CONTENT" >> $GITHUB_ENV
echo "EOF" >> $GITHUB_ENV
- name: Create GitHub Release
uses: softprops/action-gh-release@v2
with:
draft: true
tag_name: ${{ env.TAG_NAME }}
body: ${{ env.CHANGELOG_CONTENT }}