Merge pull request #47 from devitq/feat/implement-jellyfin-plugin-46
feat: implement Jellyfin plugin
This commit was merged in pull request #47.
This commit is contained in:
@@ -30,13 +30,13 @@ jobs:
|
||||
- name: Set up Gradle
|
||||
uses: gradle/actions/setup-gradle@v6
|
||||
|
||||
- name: Run CI quality gate
|
||||
run: ./gradlew clean check bootJar --stacktrace --no-daemon
|
||||
|
||||
- name: Set artifact name
|
||||
id: meta
|
||||
run: echo "artifact-name=build-${{ github.run_id }}-${{ github.run_attempt }}" >> "$GITHUB_OUTPUT"
|
||||
|
||||
- name: Run CI quality gate
|
||||
run: ./gradlew clean check bootJar --stacktrace --no-daemon
|
||||
|
||||
- name: Upload build artifacts
|
||||
if: always()
|
||||
uses: actions/upload-artifact@v7
|
||||
|
||||
@@ -0,0 +1,54 @@
|
||||
name: Jellyfin Plugin
|
||||
run-name: "${{ github.ref_name }} - ${{ github.event_name }} by @${{ github.actor }}"
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [develop, main]
|
||||
tags: ["v*"]
|
||||
paths:
|
||||
- ".github/workflows/jellyfin-plugin.yaml"
|
||||
- "plugins/jellyfin/**"
|
||||
pull_request:
|
||||
branches: [develop, main]
|
||||
paths:
|
||||
- ".github/workflows/jellyfin-plugin.yaml"
|
||||
- "plugins/jellyfin/**"
|
||||
|
||||
concurrency:
|
||||
group: jellyfin-plugin-${{ github.workflow }}-${{ github.ref }}
|
||||
cancel-in-progress: true
|
||||
|
||||
jobs:
|
||||
build:
|
||||
name: Build Jellyfin Plugin
|
||||
runs-on: ubuntu-latest
|
||||
timeout-minutes: 15
|
||||
permissions:
|
||||
contents: read
|
||||
steps:
|
||||
- name: Checkout source
|
||||
uses: actions/checkout@v6
|
||||
|
||||
- name: Set up .NET 9
|
||||
uses: actions/setup-dotnet@v5
|
||||
with:
|
||||
dotnet-version: "9.0.x"
|
||||
|
||||
- name: Restore plugin dependencies
|
||||
run: dotnet restore plugins/jellyfin/Jellyfin.Plugin.MovieNight/Jellyfin.Plugin.MovieNight.csproj
|
||||
|
||||
- name: Publish plugin
|
||||
run: |
|
||||
dotnet publish \
|
||||
plugins/jellyfin/Jellyfin.Plugin.MovieNight/Jellyfin.Plugin.MovieNight.csproj \
|
||||
-c Release \
|
||||
--no-restore \
|
||||
-o artifacts/MovieNight
|
||||
|
||||
- name: Upload plugin artifact
|
||||
uses: actions/upload-artifact@v7
|
||||
with:
|
||||
name: MovieNight
|
||||
path: artifacts/MovieNight/*
|
||||
retention-days: 7
|
||||
if-no-files-found: error
|
||||
Reference in New Issue
Block a user