添加 Liteyuki Python 包发布操作,包含必要的输入和输出配置

This commit is contained in:
远野千束(神羽) 2024-12-20 01:55:03 +08:00
commit 7534a7d14e
2 changed files with 39 additions and 0 deletions

27
action.yml Normal file
View File

@ -0,0 +1,27 @@
name: 'liteyuki-pypi'
description: 'Publish your Python package to Liteyuki Registry'
author: 'LiteyukiStudio'
inputs:
owner:
description: 'The owner of the repository.'
required: true
username:
description: 'Your Gitea username for authentication.'
required: true
token:
description: 'Your Gitea token for authentication.'
required: true
endpoint:
description: 'The endpoint of the Gitea server.'
required: false
default: 'https://git.liteyuki.icu/api/packages/{owner}/pypi'
outputs:
result:
description: 'action-demo'
runs:
using: node16
main: 'dist/index.js'

12
package.json Normal file
View File

@ -0,0 +1,12 @@
{
"name": "liteyuki-pypi",
"version": "1.0.0",
"description": "",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"keywords": [],
"author": "",
"license": "ISC"
}