From 62ebe8b2932753586b3694d422e0850cf6f08c33 Mon Sep 17 00:00:00 2001 From: CodeDevMLH <145071728+CodeDevMLH@users.noreply.github.com> Date: Fri, 2 Jan 2026 19:25:49 +0100 Subject: [PATCH] Refactor build workflow to streamline plugin build process and enhance artifact management --- .gitea/workflows/build.yaml | 38 ++++++++++++++++++++++++++++++------- 1 file changed, 31 insertions(+), 7 deletions(-) diff --git a/.gitea/workflows/build.yaml b/.gitea/workflows/build.yaml index 028027e..2223317 100644 --- a/.gitea/workflows/build.yaml +++ b/.gitea/workflows/build.yaml @@ -2,18 +2,42 @@ name: '🏗️ Build Plugin' on: push: - branches: - - main - - dev paths-ignore: - '**/*.md' + - '.gitea/**' + - '.github/**' + - 'jellyfin.ruleset' + - '.gitignore' + - '.editorconfig' + - 'LICENSE' + - 'logo.png' pull_request: - branches: - - main paths-ignore: - '**/*.md' workflow_dispatch: jobs: - call: - uses: ./.github/workflows/build_internal.yaml + build: + runs-on: ubuntu-latest + steps: + - name: Checkout Repository + uses: actions/checkout@v6 + + - name: Setup .NET + uses: actions/setup-dotnet@v5 + with: + dotnet-version: "9.0.x" + + - name: Build Jellyfin Plugin + uses: oddstr13/jellyfin-plugin-repository-manager@v1 + id: jprm + with: + dotnet-target: "net9.0" + + - name: Upload Artifact + uses: actions/upload-artifact@v6 + with: + name: build-artifact + retention-days: 30 + if-no-files-found: error + path: ${{ steps.jprm.outputs.artifact }}