Duncan Tourolle a8d3968925
Some checks failed
🏗️ Build Plugin / build (push) Failing after 1m12s
🧪 Test Plugin / test (push) Failing after 12s
gitea ci workflows
2025-11-14 20:26:52 +01:00

60 lines
1.4 KiB
YAML

name: '🏗️ Build Plugin'
on:
push:
branches:
- master
paths-ignore:
- '**/*.md'
pull_request:
branches:
- master
paths-ignore:
- '**/*.md'
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: '8.0.x'
- name: Restore dependencies
run: dotnet restore
- name: Build solution
run: dotnet build --configuration Release --no-restore
- name: Run tests
run: dotnet test --no-build --configuration Release --verbosity normal
- name: Install JPRM
run: |
pip install --user jprm
- name: Build Jellyfin Plugin
id: jprm
run: |
# Build plugin using JPRM
python -m jprm --verbosity=debug plugin build ./
# Find the generated zip file
ARTIFACT=$(find . -name "*.zip" -type f -print -quit)
echo "artifact=${ARTIFACT}" >> $GITHUB_OUTPUT
echo "Found artifact: ${ARTIFACT}"
- name: Upload build artifact
uses: actions/upload-artifact@v4
with:
name: jellyfin-srfplay-plugin
path: ${{ steps.jprm.outputs.artifact }}
retention-days: 30
if-no-files-found: error