mirror of
https://github.com/jon4hz/jellyfin-plugin-ci.git
synced 2026-11-30 03:51:49 +01:00
main
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
jellyfin-plugin-ci
Reusable GitHub Actions workflows and the shared Renovate preset for my Jellyfin plugins.
| Workflow | What it does |
|---|---|
ci.yml |
dotnet build with warnings as errors, plus pre-commit (re-runnable on a PR via the pre-commit ci run label) |
release.yml |
sets the version in the csproj, dotnet publish (the csproj's CreatePluginPackage target zips the plugin), creates the GitHub release and prepends the version to manifest.json on main |
Conventions a plugin repo has to follow: one *.sln, global.json and manifest.json in the root, the project at <Name>/<Name>.csproj with AssemblyVersion/FileVersion/PluginVersion properties, and a package named bin/<repo-name>-<version>.zip. targetAbi is derived from the Jellyfin.Controller package version.
Callers (copy into .github/workflows/):
# ci.yml
name: CI
on:
push:
branches: [main]
pull_request:
types: [labeled, opened, reopened, synchronize]
jobs:
ci:
uses: jon4hz/jellyfin-plugin-ci/.github/workflows/ci.yml@v0.1.0
permissions:
contents: read
pull-requests: write
# release.yml
name: Release
on:
push:
tags: ['v*.*.*']
workflow_dispatch:
inputs:
version:
description: 'Version to build (e.g. 1.0.0)'
required: true
type: string
jobs:
release:
uses: jon4hz/jellyfin-plugin-ci/.github/workflows/release.yml@v0.1.0
permissions:
contents: write
with:
version: ${{ inputs.version || github.ref_name }}
Renovate (the Mend app, installed on the repo) keeps nuget packages, the global.json SDK, GitHub Actions and pre-commit hook revisions up to date:
// renovate.json
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"extends": ["github>jon4hz/jellyfin-plugin-ci"]
}