From 112d90448512922c9ccb81b94873758570b83419 Mon Sep 17 00:00:00 2001 From: 7000pctAUTO Date: Sat, 31 Jan 2026 11:08:27 +0000 Subject: [PATCH] Initial upload with CI/CD workflow --- .gitea/workflows/pypi-publish.yml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 .gitea/workflows/pypi-publish.yml diff --git a/.gitea/workflows/pypi-publish.yml b/.gitea/workflows/pypi-publish.yml new file mode 100644 index 0000000..cd29ac5 --- /dev/null +++ b/.gitea/workflows/pypi-publish.yml @@ -0,0 +1,26 @@ +name: PyPI Publish + +on: + release: + types: [published] + +jobs: + pypi-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 package + run: | + python -m build + - name: Publish package + uses: pypa/gh-action-pypi-publish@release/v1 + with: + password: ${{ secrets.PYPI_API_TOKEN }}