From 6e623668d536d3b94be58568ab0b5f0ada789060 Mon Sep 17 00:00:00 2001 From: CodeDevMLH <145071728+CodeDevMLH@users.noreply.github.com> Date: Fri, 2 Jan 2026 21:23:35 +0100 Subject: [PATCH] Add build workflow for Jellyfin Plugin with artifact upload --- .gitea/workflows/build_V2.yml | 45 +++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 .gitea/workflows/build_V2.yml diff --git a/.gitea/workflows/build_V2.yml b/.gitea/workflows/build_V2.yml new file mode 100644 index 0000000..441bcbe --- /dev/null +++ b/.gitea/workflows/build_V2.yml @@ -0,0 +1,45 @@ +name: '🏗️ Build Plugin' + +on: + push: + paths-ignore: + - '**/*.md' + - '.gitea/**' + - '.github/**' + - 'jellyfin.ruleset' + - '.gitignore' + - '.editorconfig' + - 'LICENSE' + - 'logo.png' + pull_request: + paths-ignore: + - '**/*.md' + workflow_dispatch: + +jobs: + build: + runs-on: ubuntu-latest + env: + PIP_BREAK_SYSTEM_PACKAGES: "1" + steps: + - name: Checkout Repository + uses: actions/checkout@v6 + + - name: Setup .NET + uses: actions/setup-dotnet@v5 + with: + dotnet-version: "9.x" + + - name: Build Jellyfin Plugin + run: | + dotnet build Jellyfin.Plugin.MediaBar/Jellyfin.Plugin.MediaBar.csproj --configuration Release --output bin/Publish + cd bin/Publish + zip -r Jellyfin.Plugin.MediaBar.zip * + + - name: Upload Artifact + uses: christopherHX/gitea-upload-artifact@v4 + with: + name: plugin-build-artifact + retention-days: 5 + if-no-files-found: error + path: bin/Publish/Jellyfin.Plugin.MediaBar.zip \ No newline at end of file