ymf
Some checks failed
🏗️ Build Plugin / build (push) Successful in 39s
🧪 Test Plugin / test (push) Successful in 1m5s
🚀 Release Plugin / build-and-release (push) Failing after 45s

This commit is contained in:
Duncan Tourolle 2026-01-11 09:52:11 +01:00
parent d4842c2361
commit 77bbc87a1a

View File

@ -78,8 +78,16 @@ jobs:
REPO_NAME="${{ github.event.repository.name }}"
GITEA_URL="${{ github.server_url }}"
# Prepare release body and create JSON payload
# Prepare release body in a file to avoid escaping issues
MANIFEST_URL="${GITEA_URL}/${REPO_OWNER}/${REPO_NAME}/raw/branch/master/manifest.json"
cat > /tmp/release_body.txt << EOF
Jellypod Jellyfin Plugin ${{ steps.get_version.outputs.version }}
See attached files for plugin installation.
To install, add this repository URL to Jellyfin:
${MANIFEST_URL}
EOF
# Create release using Gitea API with jq for proper JSON
RESPONSE=$(curl -s -w "\n%{http_code}" -X POST \
@ -89,7 +97,7 @@ jobs:
-d "$(jq -n \
--arg tag "${{ steps.get_version.outputs.version }}" \
--arg name "Release ${{ steps.get_version.outputs.version }}" \
--arg body "Jellypod Jellyfin Plugin ${{ steps.get_version.outputs.version }}\n\nSee attached files for plugin installation.\n\nTo install, add this repository URL to Jellyfin:\n${MANIFEST_URL}" \
--rawfile body /tmp/release_body.txt \
'{tag_name: $tag, name: $name, body: $body, draft: false, prerelease: false}'
)")