Add GitHub Actions workflows for building and releasing the Jellyfin plugin
All checks were successful
Auto Release Plugin / build-and-release (push) Successful in 51s

This commit is contained in:
CodeDevMLH
2025-12-31 01:24:07 +01:00
parent 817b8786c8
commit 9cf4da92ac
6 changed files with 136 additions and 11 deletions

View File

@@ -3,17 +3,16 @@ name: '🏗️ Build Plugin'
on:
push:
branches:
- main
- dev
- master
paths-ignore:
- '**/*.md'
pull_request:
branches:
- main
- master
paths-ignore:
- '**/*.md'
workflow_dispatch:
jobs:
call:
uses: ./.github/workflows/build_internal.yaml
uses: jellyfin/jellyfin-meta-plugins/.github/workflows/build.yaml@master

View File

@@ -1,39 +0,0 @@
on:
workflow_call:
inputs:
dotnet-version:
required: false
default: "9.0.x"
description: "The .NET version to setup for the build"
type: string
dotnet-target:
required: false
default: "net9.0"
description: "The .NET target to set for JPRM"
type: string
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
- name: Setup .NET
uses: actions/setup-dotnet@2016bd2012dba4e32de620c46fe006a3ac9f0602 # v5.0.1
with:
dotnet-version: "${{ inputs.dotnet-version }}"
- name: Build Jellyfin Plugin
uses: oddstr13/jellyfin-plugin-repository-manager@9497a0a499416cc572ed2e07a391d9f943a37b4d # v1.1.1
id: jprm
with:
dotnet-target: "${{ inputs.dotnet-target }}"
- name: Upload Artifact
uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6
with:
name: build-artifact
retention-days: 30
if-no-files-found: error
path: ${{ steps.jprm.outputs.artifact }}

View File

@@ -70,7 +70,7 @@ jobs:
REPO_OWNER="${{ github.repository_owner }}"
REPO_NAME="${{ github.event.repository.name }}"
VERSION="${{ env.VERSION }}"
DOWNLOAD_URL="https://git.mahom03-spacecloud.de/${{ github.repository }}/releases/download/v$VERSION/Jellyfin.Plugin.Seasonals.zip"
DOWNLOAD_URL="https://github.com/$REPO_OWNER/$REPO_NAME/releases/download/v$VERSION/Jellyfin.Plugin.Seasonals.zip"
echo "Updating manifest.json with:"
echo "Hash: ${{ env.ZIP_HASH }}"
@@ -90,13 +90,12 @@ jobs:
file_pattern: manifest.json
- name: Create Release
uses: akkuman/gitea-release-action@v1
uses: softprops/action-gh-release@v2
with:
server_url: "https://git.mahom03-spacecloud.de"
body: ${{ env.CHANGELOG }}
token: ${{ secrets.GITHUB_TOKEN }}
files: ${{ env.ZIP_PATH }}
name: "v${{ env.VERSION }}"
tag_name: "v${{ env.VERSION }}"
name: "v${{ env.VERSION }}"
# body: ${{ env.CHANGELOG }}
files: ${{ env.ZIP_PATH }}
draft: false
prerelease: false
generate_release_notes: true