Fix github action build

This commit is contained in:
cxfksword
2022-10-11 16:07:47 +08:00
parent 5c31f5c32f
commit 4cb39ddc37
2 changed files with 5 additions and 2 deletions

View File

@@ -9,6 +9,7 @@ env:
python-version: 3.8
project: Jellyfin.Plugin.Danmu/Jellyfin.Plugin.Danmu.csproj
branch: main
artifact: danmu
jobs:
build:
@@ -35,7 +36,7 @@ jobs:
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: ./artifacts/danmu_*.zip
file: ./artifacts/${{ env.artifact }}_*.zip
tag: ${{ github.ref }}
file_glob: true
- name: Update manifest

View File

@@ -29,11 +29,13 @@ if prerelease:
else:
jellyfin_repo_file = "./manifest.json"
jellyfin_repo_url = "https://github.com/cxfksword/jellyfin-plugin-danmu/releases/download/%s" % (git_version)
jellyfin_repo_url = "https://github.com/cxfksword/jellyfin-plugin-danmu/releases/download"
zipfile = os.popen('jprm --verbosity=debug plugin build "." --output="%s" --version="%s" --dotnet-framework="net6.0"' %
(artifact_dir, version)).read().strip()
os.system('jprm repo add --url=%s %s %s' % (jellyfin_repo_url, jellyfin_repo_file, zipfile))
os.system('sed -i "s/\/danmu\//%s\//" %s' % (version, jellyfin_repo_file))
print(version)