impoving build system
This commit is contained in:
parent
cdf53c5288
commit
67619a4f56
@ -15,7 +15,7 @@ on:
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
runs-on: ubuntu-22.04
|
||||
container:
|
||||
image: gitea.tourolle.paris/dtourolle/jellypod-builder:latest
|
||||
|
||||
|
||||
@ -13,7 +13,7 @@ on:
|
||||
|
||||
jobs:
|
||||
build-and-release:
|
||||
runs-on: ubuntu-latest
|
||||
runs-on: ubuntu-22.04
|
||||
container:
|
||||
image: gitea.tourolle.paris/dtourolle/jellypod-builder:latest
|
||||
|
||||
@ -79,8 +79,16 @@ jobs:
|
||||
GITEA_URL="${{ github.server_url }}"
|
||||
|
||||
# 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_JSON=$(echo -n "${RELEASE_BODY}" | jq -Rs .)
|
||||
RELEASE_BODY=$(cat <<EOF
|
||||
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
|
||||
RESPONSE=$(curl -s -w "\n%{http_code}" -X POST \
|
||||
|
||||
@ -1,10 +1,13 @@
|
||||
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 \
|
||||
python3 \
|
||||
python3-pip \
|
||||
jq \
|
||||
git \
|
||||
nodejs \
|
||||
npm \
|
||||
&& rm -rf /var/lib/apt/lists/*
|
||||
|
||||
# Install JPRM
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user