From ffe20255c3ab11b6a57c8b7e2ab1bf666ce93c8b Mon Sep 17 00:00:00 2001 From: 7000pctAUTO Date: Sat, 31 Jan 2026 11:08:22 +0000 Subject: [PATCH] Initial upload with CI/CD workflow --- .gitea/workflows/publish-pypi.yml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 .gitea/workflows/publish-pypi.yml diff --git a/.gitea/workflows/publish-pypi.yml b/.gitea/workflows/publish-pypi.yml new file mode 100644 index 0000000..5f131e0 --- /dev/null +++ b/.gitea/workflows/publish-pypi.yml @@ -0,0 +1,25 @@ +name: Publish to PyPI + +on: + release: + types: [published] + +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 dependencies + run: | + python -m pip install --upgrade pip + pip install build + - name: Build and publish + env: + PYPI_API_TOKEN: ${{ secrets.PYPI_API_TOKEN }} + run: | + python -m build + publish-pypi