chore: package env example in skill releases
All checks were successful
Publish Python Package to Gitea / publish (push) Successful in 31s

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-06-02 10:33:55 +08:00
parent 8a4a3c8f5d
commit 84bb085250
3 changed files with 51 additions and 0 deletions

View File

@@ -119,6 +119,14 @@ jobs:
" shutil.copy2(req_src, req_dst)" \
" print('Copied requirements.txt')" \
'' \
"env_example_src = os.path.abspath('.env.example')" \
"env_example_dst = os.path.join(PACKAGE, '.env.example')" \
'if os.path.isfile(env_example_src):' \
" shutil.copy2(env_example_src, env_example_dst)" \
" print('Copied .env.example')" \
'if os.path.isfile(env_example_src) and not os.path.isfile(env_example_dst):' \
" raise RuntimeError('.env.example exists in skill root but was not packaged')" \
'' \
"print('Package top-level entries:')" \
'for name in sorted(os.listdir(PACKAGE)):' \
" print(' -', name)" \