重构项目路径
Some checks failed
Publish Python Package to Gitea / publish (push) Failing after 59s

This commit is contained in:
2026-05-06 17:16:09 +08:00
parent 8bbf5084f5
commit d2dbb5f61e
34 changed files with 339 additions and 868 deletions

33
.github/workflows/publish.yml vendored Normal file
View File

@@ -0,0 +1,33 @@
name: Publish Python Package to Gitea
on:
push:
tags:
- 'v*'
workflow_dispatch:
jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.11'
- name: Install build tools
run: pip install --upgrade build twine
- name: Build distributions
run: python -m build
- name: Publish to Gitea Package Registry
env:
TWINE_USERNAME: ${{ secrets.GITEA_USERNAME }}
TWINE_PASSWORD: ${{ secrets.GITEA_TOKEN }}
run: |
twine upload \
--repository-url https://git.jc2009.com/api/packages/client-jiangchang/pypi \
dist/*