3 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
dtourolle 67619a4f56 impoving build system
🏗️ Build Plugin / build (push) Successful in 57s
🧪 Test Plugin / test (push) Successful in 1m12s
🚀 Release Plugin / build-and-release (push) Failing after 39s
2026-01-11 09:40:18 +01:00
3 changed files with 23 additions and 14 deletions
+1 -1
View File
@@ -15,7 +15,7 @@ on:
jobs: jobs:
build: build:
runs-on: ubuntu-latest runs-on: ubuntu-22.04
container: container:
image: gitea.tourolle.paris/dtourolle/jellypod-builder:latest image: gitea.tourolle.paris/dtourolle/jellypod-builder:latest
+18 -12
View File
@@ -13,7 +13,7 @@ on:
jobs: jobs:
build-and-release: build-and-release:
runs-on: ubuntu-latest runs-on: ubuntu-22.04
container: container:
image: gitea.tourolle.paris/dtourolle/jellypod-builder:latest image: gitea.tourolle.paris/dtourolle/jellypod-builder:latest
@@ -78,22 +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="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\`${GITEA_URL}/${REPO_OWNER}/${REPO_NAME}/raw/branch/master/manifest.json\`" MANIFEST_URL="${GITEA_URL}/${REPO_OWNER}/${REPO_NAME}/raw/branch/master/manifest.json"
RELEASE_BODY_JSON=$(echo -n "${RELEASE_BODY}" | jq -Rs .) cat > /tmp/release_body.txt << EOF
Jellypod Jellyfin Plugin ${{ steps.get_version.outputs.version }}
# Create release using Gitea API 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 \ 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')
+4 -1
View File
@@ -1,10 +1,13 @@
FROM mcr.microsoft.com/dotnet/sdk:8.0 FROM mcr.microsoft.com/dotnet/sdk:8.0
# Install Python and pip for JPRM # Install Python, Node.js, and tools
RUN apt-get update && apt-get install -y \ RUN apt-get update && apt-get install -y \
python3 \ python3 \
python3-pip \ python3-pip \
jq \ jq \
git \
nodejs \
npm \
&& rm -rf /var/lib/apt/lists/* && rm -rf /var/lib/apt/lists/*
# Install JPRM # Install JPRM