2 Commits
Author SHA1 Message Date
dtourolle 77bbc87a1a ymf
🏗️ Build Plugin / build (push) Successful in 39s
🧪 Test Plugin / test (push) Successful in 1m5s
🚀 Release Plugin / build-and-release (push) Failing after 45s
2026-01-11 09:52:11 +01:00
dtourolle d4842c2361 fixing new build system
🏗️ Build Plugin / build (push) Successful in 48s
🧪 Test Plugin / test (push) Successful in 1m4s
🚀 Release Plugin / build-and-release (push) Failing after 46s
2026-01-11 09:43:51 +01:00
+11 -13
View File
@@ -78,30 +78,28 @@ jobs:
REPO_NAME="${{ github.event.repository.name }}" REPO_NAME="${{ github.event.repository.name }}"
GITEA_URL="${{ github.server_url }}" GITEA_URL="${{ github.server_url }}"
# Prepare release body # Prepare release body in a file to avoid escaping issues
RELEASE_BODY=$(cat <<EOF 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 }} Jellypod Jellyfin Plugin ${{ steps.get_version.outputs.version }}
See attached files for plugin installation. See attached files for plugin installation.
To install, add this repository URL to Jellyfin: To install, add this repository URL to Jellyfin:
${GITEA_URL}/${REPO_OWNER}/${REPO_NAME}/raw/branch/master/manifest.json ${MANIFEST_URL}
EOF EOF
)
RELEASE_BODY_JSON=$(printf '%s' "$RELEASE_BODY" | jq -Rs .)
# Create release using Gitea API # Create release using Gitea API with jq for proper JSON
RESPONSE=$(curl -s -w "\n%{http_code}" -X POST \ RESPONSE=$(curl -s -w "\n%{http_code}" -X POST \
-H "Authorization: token ${GITEA_TOKEN}" \ -H "Authorization: token ${GITEA_TOKEN}" \
-H "Content-Type: application/json" \ -H "Content-Type: application/json" \
"${GITEA_URL}/api/v1/repos/${REPO_OWNER}/${REPO_NAME}/releases" \ "${GITEA_URL}/api/v1/repos/${REPO_OWNER}/${REPO_NAME}/releases" \
-d "{ -d "$(jq -n \
\"tag_name\": \"${{ steps.get_version.outputs.version }}\", --arg tag "${{ steps.get_version.outputs.version }}" \
\"name\": \"Release ${{ steps.get_version.outputs.version }}\", --arg name "Release ${{ steps.get_version.outputs.version }}" \
\"body\": ${RELEASE_BODY_JSON}, --rawfile body /tmp/release_body.txt \
\"draft\": false, '{tag_name: $tag, name: $name, body: $body, draft: false, prerelease: false}'
\"prerelease\": false )")
}")
HTTP_CODE=$(echo "$RESPONSE" | tail -n1) HTTP_CODE=$(echo "$RESPONSE" | tail -n1)
BODY=$(echo "$RESPONSE" | sed '$d') BODY=$(echo "$RESPONSE" | sed '$d')