-
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #4 from jellyfin/rework-directory-and-add-ci
Rework directory structure and add CI/CD
- Loading branch information
Showing
13 changed files
with
165 additions
and
107 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,72 +1,81 @@ | ||
{ | ||
"$schema": "http://json-schema.org/draft-07/schema#", | ||
"title": "Jellyfin studio artwork", | ||
"description": "A set of artwork for studios, used by Jellyfin", | ||
"type": "array", | ||
"items": { | ||
"$schema": "http://json-schema.org/draft-07/schema#", | ||
"title": "Jellyfin studio artwork", | ||
"description": "A set of artwork for studios, used by Jellyfin", | ||
"type": "array", | ||
"items": { | ||
"type": "object", | ||
"properties": { | ||
"name": { | ||
"description": "Standard name of the studio, network or label in English", | ||
"type": "string" | ||
}, | ||
"providers": { | ||
"type": "object", | ||
"description": "Identifiers for various metadata providers", | ||
"properties": { | ||
"name": { | ||
"description": "Standard name of the studio, network or label in English", | ||
"type": "string" | ||
}, | ||
"providers": { | ||
"type": "object", | ||
"description": "Identifiers for various metadata providers", | ||
"properties": { | ||
"tvdb": { | ||
"description": "Identifier of the network on TVDB", | ||
"type": "string" | ||
}, | ||
"tmdb": { | ||
"description": "Identifier of the network or studio on TheMovieDB", | ||
"type": "string" | ||
}, | ||
"imdb": { | ||
"description": "Identifier of the company on IMDB", | ||
"type": "string" | ||
}, | ||
"musicbrainz": { | ||
"description": "Identifier of the label on MusicBrainz", | ||
"type": "string" | ||
}, | ||
"anidb": { | ||
"description": "Identifier of the studio on AniDB", | ||
"type": "string" | ||
}, | ||
"anilist": { | ||
"description": "Identifier of the studio on AniList", | ||
"type": "string" | ||
}, | ||
"additionalProperties": true | ||
} | ||
}, | ||
"artwork": { | ||
"type": "object", | ||
"properties": { | ||
"primary": { | ||
"type": "string" | ||
}, | ||
"thumb": { | ||
"type": "string" | ||
}, | ||
"logo": { | ||
"type": "string" | ||
}, | ||
"backdrop": { | ||
"type": "string" | ||
} | ||
}, | ||
"required": [ | ||
"primary", | ||
"thumb" | ||
] | ||
"tvdb": { | ||
"description": "Identifier of the network on TVDB", | ||
"type": "string" | ||
}, | ||
"tmdb": { | ||
"description": "Identifier of the network or studio on TheMovieDB", | ||
"type": "string" | ||
}, | ||
"imdb": { | ||
"description": "Identifier of the company on IMDB", | ||
"type": "string" | ||
}, | ||
"musicbrainz": { | ||
"description": "Identifier of the label on MusicBrainz", | ||
"type": "string" | ||
}, | ||
"anidb": { | ||
"description": "Identifier of the studio on AniDB", | ||
"type": "string" | ||
}, | ||
"anilist": { | ||
"description": "Identifier of the studio on AniList", | ||
"type": "string" | ||
}, | ||
"additionalProperties": true | ||
} | ||
}, | ||
"artwork": { | ||
"type": "object", | ||
"properties": { | ||
"primary": { | ||
"type": "array", | ||
"items": { | ||
"type": "string", | ||
"enum": ["webp", "svg"] | ||
} | ||
}, | ||
"thumb": { | ||
"type": "array", | ||
"items": { | ||
"type": "string", | ||
"enum": ["webp", "svg"] | ||
} | ||
}, | ||
"logo": { | ||
"type": "array", | ||
"items": { | ||
"type": "string", | ||
"enum": ["webp", "svg"] | ||
} | ||
}, | ||
"backdrop": { | ||
"type": "array", | ||
"items": { | ||
"type": "string", | ||
"enum": ["webp", "svg"] | ||
} | ||
} | ||
}, | ||
"required": [ | ||
"name", | ||
"providers", | ||
"artwork" | ||
] | ||
} | ||
} | ||
"required": ["primary", "thumb"] | ||
} | ||
}, | ||
"required": ["name", "providers", "artwork"] | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
name: Build & release | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
|
||
jobs: | ||
release: | ||
name: Release | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-node@v2 | ||
with: | ||
node-version: "14" | ||
- name: Install build dependencies | ||
run: npm install svgo | ||
- name: Create dist directory | ||
run: mkdir dist | ||
- name: Copy source SVGs | ||
run: cp -r studios dist/ | ||
- name: Optimize source SVGs | ||
run: npx svgo --multipass dist/studios/**/*.svg | ||
- name: ImageMagick Action | ||
uses: jruipinto/ImageMagick-action@v1 | ||
with: | ||
# ImageMagick command to be executed | ||
command: mogrify -format webp dist/studios/**/*.svg | ||
- name: Build studios.json | ||
run: jq -s '.[0]=([.[]]|flatten)|.[0]' studios/**/studio.json > dist/studios.json | ||
- name: Remove individual JSON files | ||
run: rm dist/studios/**/studio.json | ||
- name: Compress built assets | ||
run: cd dist; zip -r -D ../release.zip *; cd .. | ||
- uses: "marvinpinto/action-automatic-releases@latest" | ||
with: | ||
repo_token: "${{ secrets.GH_TOKEN }}" | ||
automatic_release_tag: "latest" | ||
prerelease: false | ||
files: | | ||
release.zip |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
File renamed without changes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
[ | ||
{ | ||
"name": "E!", | ||
"machine-name": "e", | ||
"providers": { | ||
"tvdb": "87", | ||
"tmdb": "76", | ||
"imdb": "co0022548" | ||
}, | ||
"artwork": { | ||
"primary": ["svg", "webp"], | ||
"thumb": ["svg", "webp"] | ||
} | ||
} | ||
] |
File renamed without changes
File renamed without changes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
[ | ||
{ | ||
"name": "Game Show Network", | ||
"machine-name": "game-show-network", | ||
"providers": { | ||
"tvdb": "116", | ||
"tmdb": "63" | ||
}, | ||
"artwork": { | ||
"primary": ["svg", "webp"], | ||
"thumb": ["svg", "webp"] | ||
} | ||
} | ||
] |
File renamed without changes
File renamed without changes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
[ | ||
{ | ||
"name": "Netflix", | ||
"machine-name": "netflix", | ||
"providers": { | ||
"tvdb": "535", | ||
"tmdb": "213", | ||
"imdb": "co0144901", | ||
"anidb": "54015" | ||
}, | ||
"artwork": { | ||
"primary": ["svg", "webp"], | ||
"thumb": ["svg", "webp"] | ||
} | ||
} | ||
] |
File renamed without changes