mirror of
https://github.com/samanhappy/mcphub.git
synced 2025-12-24 02:39:19 -05:00
34 lines
825 B
YAML
34 lines
825 B
YAML
name: GitHub Release
|
|
|
|
on:
|
|
push:
|
|
tags: ['v*.*.*']
|
|
|
|
jobs:
|
|
release:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
with:
|
|
fetch-depth: 0
|
|
|
|
- name: Extract Release Notes
|
|
id: extract-release-notes
|
|
run: |
|
|
echo "RELEASE_NOTES<<EOF" >> $GITHUB_ENV
|
|
git log $(git describe --tags --abbrev=0 HEAD^1 2>/dev/null || echo HEAD^1)..HEAD --pretty=format:"- %s%n%b" >> $GITHUB_ENV
|
|
echo "EOF" >> $GITHUB_ENV
|
|
|
|
- name: Create GitHub Release
|
|
uses: softprops/action-gh-release@v1
|
|
with:
|
|
name: Release ${{ github.ref_name }}
|
|
body: |
|
|
# MCPHub ${{ github.ref_name }}
|
|
|
|
${{ env.RELEASE_NOTES }}
|
|
|
|
draft: false
|
|
prerelease: false
|
|
generate_release_notes: true
|