-
Notifications
You must be signed in to change notification settings - Fork 24
34 lines (31 loc) · 904 Bytes
/
jellyfin.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
name: 'Jellyfin Plugin'
on:
push:
branches-ignore:
- release
permissions:
contents: read
jobs:
build:
name: Build Plugin
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v4
- name: Patch version
run: sed -i "/FileVersion/s/.0</.$GITHUB_RUN_NUMBER</" **/*.csproj
- name: Setup .NET 8.x
uses: actions/setup-dotnet@v4
with:
dotnet-version: 8
- 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