minor fixes #158
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
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@v4 | |
- name: Add msbuild to PATH | |
uses: microsoft/setup-msbuild@v2 | |
- 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@v4 | |
- name: Add msbuild to PATH | |
uses: microsoft/setup-msbuild@v2 | |
- 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@v4 | |
- name: Add msbuild to PATH | |
uses: microsoft/setup-msbuild@v2 | |
- 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/net8.0/ThePornDB.dll Jellyfin.Plugin.ThePornDB.dll && ren Jellyfin.Plugin.ThePornDB/bin/Release/net8.0/ThePornDB.pdb Jellyfin.Plugin.ThePornDB.pdb | |
- uses: vimtor/[email protected] | |
with: | |
files: Jellyfin.Plugin.ThePornDB/bin/Release/net8.0/Jellyfin.Plugin.ThePornDB.pdb Jellyfin.Plugin.ThePornDB/bin/Release/net8.0/Jellyfin.Plugin.ThePornDB.dll | |
dest: Jellyfin.Plugin.ThePornDB.zip | |
- uses: actions/upload-artifact@v4 | |
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@v4 | |
- name: Add msbuild to PATH | |
uses: microsoft/setup-msbuild@v2 | |
- 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/[email protected] | |
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@v4 | |
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@v4 | |
- 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 |