Skip to content

Better compatible with namer #148

Better compatible with namer

Better compatible with namer #148

Workflow file for this run

name: Build
on:
push:
branches:
- main
tags: ["v*"]
paths:
- Jellyfin.Plugin.ThePornDB/**
- .github/**
pull_request:
branches:
-main
jobs:
debug-jellyfin:
runs-on: windows-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Add msbuild to PATH
uses: microsoft/[email protected]
- name: Build app for debug
run: MSBuild -t:Restore,Build -p:RestorePackagesConfig=true -property:Configuration=Debug
debug-emby:
runs-on: windows-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Add msbuild to PATH
uses: microsoft/[email protected]
- name: Build app for release
run: MSBuild -t:Restore,Build -p:RestorePackagesConfig=true -property:Configuration=Debug.Emby
jellyfin:
runs-on: windows-latest
needs: [debug-jellyfin]
steps:
- uses: actions/checkout@v2
- name: Add msbuild to PATH
uses: microsoft/[email protected]
- name: Build app for release
run: MSBuild -t:Restore,Build -p:RestorePackagesConfig=true -property:Configuration=Release
- name: Rename Files
run: ren Jellyfin.Plugin.ThePornDB/bin/Release/net6.0/ThePornDB.dll Jellyfin.Plugin.ThePornDB.dll && ren Jellyfin.Plugin.ThePornDB/bin/Release/net6.0/ThePornDB.pdb Jellyfin.Plugin.ThePornDB.pdb
- uses: vimtor/action-zip@v1
with:
files: Jellyfin.Plugin.ThePornDB/bin/Release/net6.0/Jellyfin.Plugin.ThePornDB.pdb Jellyfin.Plugin.ThePornDB/bin/Release/net6.0/Jellyfin.Plugin.ThePornDB.dll
dest: Jellyfin.Plugin.ThePornDB.zip
- uses: actions/upload-artifact@v3
with:
if-no-files-found: error
name: Jellyfin
retention-days: 90
path: Jellyfin.Plugin.ThePornDB.zip
emby:
runs-on: windows-latest
needs: [debug-emby]
steps:
- uses: actions/checkout@v2
- name: Add msbuild to PATH
uses: microsoft/[email protected]
- name: Build app for release
run: MSBuild -t:Restore,Build -p:RestorePackagesConfig=true -property:Configuration=Release.Emby
- name: Rename Files
run: ren Jellyfin.Plugin.ThePornDB/bin/Release.Emby/netstandard2.1/ThePornDB.dll ./Emby.Plugins.ThePornDB.dll && ren Jellyfin.Plugin.ThePornDB/bin/Release.Emby/netstandard2.1/ThePornDB.pdb ./Emby.Plugins.ThePornDB.pdb
- uses: vimtor/action-zip@v1
with:
files: Jellyfin.Plugin.ThePornDB/bin/Release.Emby/netstandard2.1/Emby.Plugins.ThePornDB.pdb Jellyfin.Plugin.ThePornDB/bin/Release.Emby/netstandard2.1/Emby.Plugins.ThePornDB.dll
dest: Emby.Plugins.ThePornDB.zip
- uses: actions/upload-artifact@v3
with:
if-no-files-found: error
name: Emby
retention-days: 90
path: Emby.Plugins.ThePornDB.zip
deploy:
runs-on: ubuntu-latest
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main'}}
needs: [jellyfin, emby]
steps:
- name: Download all artifacts
uses: actions/download-artifact@v3
- uses: marvinpinto/action-automatic-releases@latest
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
automatic_release_tag: "latest"
prerelease: true
title: "Development Build"
files: |
**/Jellyfin.Plugin.ThePornDB.zip
**/Emby.Plugins.ThePornDB.zip