- Bumped version to 1.5.0 and updated project description for clarity. - Added build-system configuration for setuptools and wheel. - Specified authors and license information. - Updated Python version requirement to >=3.10. - Included project URLs for homepage and bug tracker. - Configured tools for code formatting (black) and linting (ruff). - Set pytest options for testing.
68 lines
No EOL
1.7 KiB
YAML
68 lines
No EOL
1.7 KiB
YAML
name: Publish Release
|
|
|
|
on:
|
|
push:
|
|
tags:
|
|
- 'v*.*.*'
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
with:
|
|
fetch-depth: 0
|
|
|
|
- name: Set up Python
|
|
uses: actions/setup-python@v4
|
|
with:
|
|
python-version: "3.11"
|
|
|
|
- name: Install build dependencies
|
|
run: |
|
|
python -m pip install --upgrade pip
|
|
pip install build wheel
|
|
|
|
- name: Build package
|
|
run: |
|
|
python -m build
|
|
|
|
- name: Get version from tag
|
|
id: get_version
|
|
run: echo "VERSION=${GITHUB_REF#refs/tags/v}" >> $GITHUB_OUTPUT
|
|
|
|
- name: Generate changelog
|
|
id: generate_changelog
|
|
run: |
|
|
git log --pretty=format:"* %s" $(git describe --tags --abbrev=0 HEAD^)..HEAD > CHANGELOG.txt
|
|
echo "CHANGELOG<<EOF" >> $GITHUB_OUTPUT
|
|
cat CHANGELOG.txt >> $GITHUB_OUTPUT
|
|
echo "EOF" >> $GITHUB_OUTPUT
|
|
|
|
- name: Create Release
|
|
id: create_release
|
|
uses: softprops/action-gh-release@v1
|
|
with:
|
|
name: Release ${{ steps.get_version.outputs.VERSION }}
|
|
body: |
|
|
# Telegram MCP v${{ steps.get_version.outputs.VERSION }}
|
|
|
|
## Changes in this release:
|
|
${{ steps.generate_changelog.outputs.CHANGELOG }}
|
|
|
|
## Installation
|
|
|
|
```bash
|
|
git clone https://github.com/${{ github.repository }}.git
|
|
cd telegram-mcp-server
|
|
pip install -r requirements.txt
|
|
```
|
|
|
|
See the [README](README.md) for complete documentation.
|
|
draft: false
|
|
prerelease: false
|
|
files: |
|
|
dist/*
|
|
LICENSE
|
|
README.md |