ci: fix build

This commit is contained in:
cxfksword 2023-07-20 22:29:23 +08:00
parent 54574cf0ce
commit 5f5a5d091d
3 changed files with 5 additions and 5 deletions

View File

@ -34,7 +34,7 @@ jobs:
dotnet restore ${{ env.project }} --no-cache
dotnet publish --nologo --no-restore --configuration=Release --framework=net6.0 ${{ env.project }}
mkdir -p artifacts
cp ./bin/Release/net6.0/Jellyfin.Plugin.MetaShark.dll ./artifacts/
cp ./Jellyfin.Plugin.MetaShark/bin/Release/net6.0/Jellyfin.Plugin.MetaShark.dll ./artifacts/
- name: Upload artifact
uses: actions/upload-artifact@v3
with:

View File

@ -33,9 +33,9 @@ jobs:
- name: Build
run: |
dotnet restore ${{ env.project }} --no-cache
dotnet publish --nologo --no-restore --configuration=Release --framework=net6.0 --output=tmp -p:Version=${{steps.vars.outputs.VERSION}} ${{ env.project }}
dotnet publish --nologo --no-restore --configuration=Release --framework=net6.0 -p:Version=${{steps.vars.outputs.VERSION}} ${{ env.project }}
mkdir -p artifacts
cp ./tmp/Jellyfin.Plugin.MetaShark.dll ./artifacts/
cp ./Jellyfin.Plugin.MetaShark/bin/Release/net6.0/Jellyfin.Plugin.MetaShark.dll ./artifacts/
- name: Compress build files
uses: thedoctor0/zip-release@main
with:

View File

@ -44,7 +44,7 @@ jellyfin电影元数据插件影片信息只要从豆瓣获取并由TheMov
```sh
dotnet restore
dotnet publish --output=artifacts Jellyfin.Plugin.MetaShark/Jellyfin.Plugin.MetaShark.csproj
dotnet publish Jellyfin.Plugin.MetaShark/Jellyfin.Plugin.MetaShark.csproj
```
@ -52,7 +52,7 @@ dotnet publish --output=artifacts Jellyfin.Plugin.MetaShark/Jellyfin.Plugin.Met
1. Build the plugin
2. Create a folder, like `metashark` and copy `artifacts/Jellyfin.Plugin.MetaShark.dll` into it
2. Create a folder, like `metashark` and copy `./bin/Debug/net6.0/Jellyfin.Plugin.MetaShark.dll` into it
3. Move folder `metashark` to jellyfin `data/plugins` folder