commit 7534a7d14ee1e73720af356ca77d6e629d1b048e Author: Snowykami Date: Fri Dec 20 01:55:03 2024 +0800 添加 Liteyuki Python 包发布操作,包含必要的输入和输出配置 diff --git a/action.yml b/action.yml new file mode 100644 index 0000000..bb78b39 --- /dev/null +++ b/action.yml @@ -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' + diff --git a/package.json b/package.json new file mode 100644 index 0000000..6060eee --- /dev/null +++ b/package.json @@ -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" +}