43 lines
1.5 KiB
YAML
43 lines
1.5 KiB
YAML
name: Publish Facial Recognition to Jellyfin
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
publish:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Configure read-only GitHub SSH access
|
|
env:
|
|
DEPLOY_KEY: ${{ secrets.FACIAL_RECOGNITION_DEPLOY_KEY }}
|
|
run: |
|
|
set -eu
|
|
test -n "$DEPLOY_KEY" || { echo "Missing FACIAL_RECOGNITION_DEPLOY_KEY"; exit 1; }
|
|
mkdir -p ~/.ssh
|
|
chmod 700 ~/.ssh
|
|
printf '%s\n' "$DEPLOY_KEY" > ~/.ssh/id_ed25519
|
|
chmod 600 ~/.ssh/id_ed25519
|
|
ssh-keyscan -H github.com >> ~/.ssh/known_hosts
|
|
|
|
- name: Clone private Facial Recognition source
|
|
env:
|
|
GIT_SSH_COMMAND: "ssh -i ~/.ssh/id_ed25519 -o IdentitiesOnly=yes -o StrictHostKeyChecking=yes"
|
|
run: |
|
|
git clone --depth 1 git@github.com:MrSleeps/jellyfin-facial-recognition.git facial-recognition
|
|
|
|
- name: Set up .NET 10 SDK
|
|
uses: actions/setup-dotnet@v4
|
|
with:
|
|
dotnet-version: "10.0.x"
|
|
|
|
- name: Build and publish Facial Recognition
|
|
env:
|
|
GITEA_URL: https://git.trufflemonkey.co.uk
|
|
GITEA_REPO: sleeps/jellyfin-plugins
|
|
GITEA_TOKEN: ${{ secrets.SCENE_SEARCH_RELEASE_TOKEN }}
|
|
run: |
|
|
set -eu
|
|
test -n "$GITEA_TOKEN" || { echo "Missing Gitea release token"; exit 1; }
|
|
cd facial-recognition
|
|
dotnet build jellyfin-plugin/Jellyfin.Plugin.FacialRecognition/Jellyfin.Plugin.FacialRecognition.csproj --configuration Release --nologo
|
|
python3 scripts/publish-gitea-plugin.py |