From 0981dc9fd630dcf2088f14764f814a50fb9711fe Mon Sep 17 00:00:00 2001 From: samanhappy Date: Sat, 12 Apr 2025 23:27:20 +0800 Subject: [PATCH] refactor: update release workflow to simplify steps and use latest action version --- .github/workflows/release.yml | 32 +++++--------------------------- 1 file changed, 5 insertions(+), 27 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 25971a7..05aa8d8 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -5,32 +5,10 @@ on: tags: ['v*.*.*'] jobs: - release: + build: runs-on: ubuntu-latest - permissions: - contents: write steps: - - uses: actions/checkout@v4 - with: - fetch-depth: 0 - - - name: Extract Release Notes - id: extract-release-notes - run: | - echo "RELEASE_NOTES<> $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 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + - name: Checkout + uses: actions/checkout@v4 + - name: Release + uses: softprops/action-gh-release@v2