From 6ed53054c3f2c4b06642c9a7d08776fc4caec53b Mon Sep 17 00:00:00 2001 From: Duncan Tourolle Date: Fri, 14 Nov 2025 21:39:34 +0100 Subject: [PATCH] remove changelog --- .gitea/workflows/release.yaml | 25 ++++--------------------- 1 file changed, 4 insertions(+), 21 deletions(-) diff --git a/.gitea/workflows/release.yaml b/.gitea/workflows/release.yaml index a2bc15f..6b14277 100644 --- a/.gitea/workflows/release.yaml +++ b/.gitea/workflows/release.yaml @@ -70,24 +70,6 @@ jobs: echo "artifact_name=${ARTIFACT_NAME}" >> $GITHUB_OUTPUT echo "Found artifact: ${ARTIFACT}" - - name: Generate changelog - id: changelog - run: | - # Get commits since last tag - PREV_TAG=$(git tag --sort=-creatordate | grep -v "${{ steps.get_version.outputs.version }}" | head -n 1) - if [ -z "$PREV_TAG" ]; then - CHANGELOG=$(git log --pretty=format:"- %s (%h)" --no-merges) - else - CHANGELOG=$(git log ${PREV_TAG}..${{ steps.get_version.outputs.version }} --pretty=format:"- %s (%h)" --no-merges) - fi - - # Save to file for release notes - echo "## What's Changed" > RELEASE_NOTES.md - echo "" >> RELEASE_NOTES.md - echo "${CHANGELOG}" >> RELEASE_NOTES.md - echo "" >> RELEASE_NOTES.md - echo "**Full Changelog**: ${PREV_TAG}...${{ steps.get_version.outputs.version }}" >> RELEASE_NOTES.md - - name: Create Release env: GITEA_TOKEN: ${{ secrets.GITHUB_TOKEN }} @@ -97,8 +79,9 @@ jobs: REPO_NAME="${{ github.event.repository.name }}" GITEA_URL="${{ github.server_url }}" - # Prepare release body as JSON - RELEASE_BODY=$(cat RELEASE_NOTES.md | jq -Rs .) + # Prepare release body + RELEASE_BODY="SRFPlay Jellyfin Plugin ${{ steps.get_version.outputs.version }}\n\nSee attached files for plugin installation." + RELEASE_BODY_JSON=$(echo -n "${RELEASE_BODY}" | jq -Rs .) # Create release using Gitea API RESPONSE=$(curl -s -w "\n%{http_code}" -X POST \ @@ -108,7 +91,7 @@ jobs: -d "{ \"tag_name\": \"${{ steps.get_version.outputs.version }}\", \"name\": \"Release ${{ steps.get_version.outputs.version }}\", - \"body\": ${RELEASE_BODY}, + \"body\": ${RELEASE_BODY_JSON}, \"draft\": false, \"prerelease\": false }")