Skip to content

Commit

Permalink
switch to github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
kookxiang committed May 5, 2024
1 parent 475f290 commit e712f99
Show file tree
Hide file tree
Showing 4 changed files with 62 additions and 7 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/emby.yml
Original file line number Diff line number Diff line change
@@ -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
30 changes: 30 additions & 0 deletions .github/workflows/jellyfin.yml
Original file line number Diff line number Diff line change
@@ -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
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,11 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Appveyor.TestLogger" Version="2.0.0"/>
<PackageReference Include="Jellyfin.Controller" Version="10.8.12"/>
<PackageReference Include="Microsoft.AspNetCore.Authorization" Version="6.0.12"/>
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.11.0"/>
<PackageReference Include="MSTest.TestAdapter" Version="3.0.2"/>
<PackageReference Include="MSTest.TestFramework" Version="3.0.2"/>
<PackageReference Include="coverlet.collector" Version="3.2.0">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<ProjectReference Include="..\Jellyfin.Plugin.Bangumi\Jellyfin.Plugin.Bangumi.csproj"/>
</ItemGroup>

Expand Down
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -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 数据源插件,用于拉取中文番剧信息及图片。

Expand All @@ -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)

# 安装
Expand Down

0 comments on commit e712f99

Please sign in to comment.