From e712f9965cc0ddc636a0f0439ce83a7f8c58290d Mon Sep 17 00:00:00 2001 From: kookxiang Date: Sun, 5 May 2024 14:31:39 +0800 Subject: [PATCH] switch to github actions --- .github/workflows/emby.yml | 28 +++++++++++++++++ .github/workflows/jellyfin.yml | 30 +++++++++++++++++++ .../Jellyfin.Plugin.Bangumi.Test.csproj | 5 ---- README.md | 6 ++-- 4 files changed, 62 insertions(+), 7 deletions(-) create mode 100644 .github/workflows/emby.yml create mode 100644 .github/workflows/jellyfin.yml diff --git a/.github/workflows/emby.yml b/.github/workflows/emby.yml new file mode 100644 index 0000000..441b4b2 --- /dev/null +++ b/.github/workflows/emby.yml @@ -0,0 +1,28 @@ +name: 'Emby Plugin' + +on: + push: + branches: + - master + +permissions: + contents: read + +jobs: + build: + name: Build Plugin + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-dotnet@v4 + with: + dotnet-version: 6 + - name: Restore NuGet Packages + run: dotnet restore + - name: .NET Publish + run: dotnet publish --configuration Release --output publish Emby.Plugin.Bangumi + - name: Upload Artifact + uses: actions/upload-artifact@v4 + with: + name: Emby.Plugin.Bangumi + path: publish/Emby.Plugin.Bangumi.dll diff --git a/.github/workflows/jellyfin.yml b/.github/workflows/jellyfin.yml new file mode 100644 index 0000000..bd977b1 --- /dev/null +++ b/.github/workflows/jellyfin.yml @@ -0,0 +1,30 @@ +name: 'Jellyfin Plugin' + +on: + push: + branches: + - master + +permissions: + contents: read + +jobs: + build: + name: Build Plugin + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-dotnet@v4 + with: + dotnet-version: 6 + - name: Restore NuGet Packages + run: dotnet restore + - name: .NET Test + run: dotnet test --configuration Release Jellyfin.Plugin.Bangumi.Test + - name: .NET Publish + run: dotnet publish --configuration Release --output publish Jellyfin.Plugin.Bangumi + - name: Upload Artifact + uses: actions/upload-artifact@v4 + with: + name: Jellyfin.Plugin.Bangumi + path: publish/*.dll diff --git a/Jellyfin.Plugin.Bangumi.Test/Jellyfin.Plugin.Bangumi.Test.csproj b/Jellyfin.Plugin.Bangumi.Test/Jellyfin.Plugin.Bangumi.Test.csproj index 4cf9a6f..669cb88 100644 --- a/Jellyfin.Plugin.Bangumi.Test/Jellyfin.Plugin.Bangumi.Test.csproj +++ b/Jellyfin.Plugin.Bangumi.Test/Jellyfin.Plugin.Bangumi.Test.csproj @@ -6,16 +6,11 @@ - - - all - runtime; build; native; contentfiles; analyzers; buildtransitive - diff --git a/README.md b/README.md index c1d3de2..d354d0d 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,8 @@ # [bgm.tv](https://bgm.tv) metadata provider for Jellyfin -[![Build status](https://ci.appveyor.com/api/projects/status/mvh65ujs7oja6bbs?svg=true)](https://ci.appveyor.com/project/kookxiang/jellyfin-plugin-bangumi) +[![Jellyfin Plugin](https://github.com/kookxiang/jellyfin-plugin-bangumi/actions/workflows/jellyfin.yml/badge.svg)](https://github.com/kookxiang/jellyfin-plugin-bangumi/actions/workflows/jellyfin.yml) +[![Jellyfin (unstable) Plugin](https://github.com/kookxiang/jellyfin-plugin-bangumi/actions/workflows/jellyfin-unstable.yml/badge.svg)](https://github.com/kookxiang/jellyfin-plugin-bangumi/actions/workflows/jellyfin-unstable.yml) +[![Emby Plugin](https://github.com/kookxiang/jellyfin-plugin-bangumi/actions/workflows/emby.yml/badge.svg)](https://github.com/kookxiang/jellyfin-plugin-bangumi/actions/workflows/emby.yml) Jellyfin bgm.tv 数据源插件,用于拉取中文番剧信息及图片。 @@ -10,7 +12,7 @@ Jellyfin bgm.tv 数据源插件,用于拉取中文番剧信息及图片。 # 下载 - - [CI 最新版](https://ci.appveyor.com/project/kookxiang/jellyfin-plugin-bangumi/build/artifacts) + - [CI 最新版](https://github.com/kookxiang/jellyfin-plugin-bangumi/actions/workflows/jellyfin.yml) - [GitHub 稳定版](https://github.com/kookxiang/jellyfin-plugin-bangumi/releases) # 安装