Skip to content

[Release] Prepare release 0.10.17 #66

[Release] Prepare release 0.10.17

[Release] Prepare release 0.10.17 #66

Workflow file for this run

name: Release Engine
on:
workflow_dispatch: # Allows manual triggering
push:
tags:
- "v*" # Only trigger on version tags (e.g., v1.0.0)
jobs:
release:
name: Create GitHub Release
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Extract version from tag
id: tag
run: echo "version=${GITHUB_REF#refs/tags/}" >> $GITHUB_OUTPUT
- name: Extract release notes from CHANGELOG.md
id: changelog
run: |
VERSION="${{ steps.tag.outputs.version }}"
# Pull the block that starts with "## <VERSION>" and ends before the next "## "
{
echo 'notes<<EOF'
echo "Untold Engine ${VERSION} is out! Here are the recent changes:"
echo ""
awk "/^## ${VERSION} /{found=1;next} found && /^## /{exit} found{print}" CHANGELOG.md
echo EOF
} >> $GITHUB_OUTPUT
- name: Create GitHub Release
uses: softprops/action-gh-release@v2
with:
tag_name: ${{ steps.tag.outputs.version }}
name: "Release ${{ steps.tag.outputs.version }}"
body: ${{ steps.changelog.outputs.notes }}
draft: false
prerelease: false