ci: set artifact_type=skill for release upload
All checks were successful
技能自动化发布 (测试版-无鉴权) / build-and-deploy (push) Successful in 14s
All checks were successful
技能自动化发布 (测试版-无鉴权) / build-and-deploy (push) Successful in 14s
This commit is contained in:
2
.github/workflows/release_skill.yaml
vendored
2
.github/workflows/release_skill.yaml
vendored
@@ -67,7 +67,7 @@ jobs:
|
||||
url = 'https://jc2009.com/api/upload'
|
||||
slug = os.environ['SLUG']
|
||||
version = os.environ['VERSION']
|
||||
payload = {'plugin_name': slug, 'version': version}
|
||||
payload = {'plugin_name': slug, 'version': version, 'artifact_type': 'skill'}
|
||||
with open(f'{slug}.zip', 'rb') as f:
|
||||
res = requests.post(url, data=payload, files={'file': f})
|
||||
print(f'Upload Result: {res.text}')
|
||||
|
||||
Reference in New Issue
Block a user