impoving build system
This commit is contained in:
parent
cdf53c5288
commit
67619a4f56
@ -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
|
||||||
|
|
||||||
|
|||||||
@ -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
|
||||||
|
|
||||||
@ -79,8 +79,16 @@ jobs:
|
|||||||
GITEA_URL="${{ github.server_url }}"
|
GITEA_URL="${{ github.server_url }}"
|
||||||
|
|
||||||
# Prepare release body
|
# Prepare release body
|
||||||
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\`"
|
RELEASE_BODY=$(cat <<EOF
|
||||||
RELEASE_BODY_JSON=$(echo -n "${RELEASE_BODY}" | jq -Rs .)
|
Jellypod Jellyfin Plugin ${{ steps.get_version.outputs.version }}
|
||||||
|
|
||||||
|
See attached files for plugin installation.
|
||||||
|
|
||||||
|
To install, add this repository URL to Jellyfin:
|
||||||
|
${GITEA_URL}/${REPO_OWNER}/${REPO_NAME}/raw/branch/master/manifest.json
|
||||||
|
EOF
|
||||||
|
)
|
||||||
|
RELEASE_BODY_JSON=$(printf '%s' "$RELEASE_BODY" | jq -Rs .)
|
||||||
|
|
||||||
# Create release using Gitea API
|
# Create release using Gitea API
|
||||||
RESPONSE=$(curl -s -w "\n%{http_code}" -X POST \
|
RESPONSE=$(curl -s -w "\n%{http_code}" -X POST \
|
||||||
|
|||||||
@ -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
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user