name: Create GitHub Release
on:
push:
tags:
- 'v*'
permissions:
contents: write
jobs:
release:
name: Create Release
runs-on: ubuntu-latest
steps:
- name: Checkout
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: |
# Extract changelog section for this version
VERSION="${{ steps.version.outputs.VERSION }}"
CHANGELOG=$(awk "/## \[${VERSION}\]/,/## \[/" CHANGELOG.md | head -n -1)
if [ -z "$CHANGELOG" ]; then
# If no next version found, get everything after the version header
CHANGELOG=$(awk "/## \[${VERSION}\]/,0" CHANGELOG.md)
fi
echo "CHANGELOG<<EOF" >> $GITHUB_OUTPUT
echo "$CHANGELOG" >> $GITHUB_OUTPUT
echo "EOF" >> $GITHUB_OUTPUT
- name: Create GitHub Release
uses: softprops/action-gh-release@v1
with:
name: Lumino MCP Server v${{ steps.version.outputs.VERSION }}
body: |
# Lumino MCP Server v${{ steps.version.outputs.VERSION }}
${{ steps.changelog.outputs.CHANGELOG }}
---
## Container Image
```bash
docker pull quay.io/geored/lumino-mcp-server:${{ steps.version.outputs.VERSION }}
```
## Installation
See [README.md](https://github.com/spre-sre/lumino-mcp-server#readme) for installation and configuration instructions.
draft: false
prerelease: false
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}