mirror of
https://github.com/cxfksword/jellyfin-plugin-danmu.git
synced 2026-04-24 02:22:09 +08:00
Fix github action build
This commit is contained in:
3
.github/workflows/publish.yaml
vendored
3
.github/workflows/publish.yaml
vendored
@@ -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
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user