From f1e3a1aefc04089c04c939517b24e9bbfd4afc99 Mon Sep 17 00:00:00 2001 From: Asankilp Date: Thu, 11 Jul 2024 11:14:12 +0000 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=E6=96=B0=E5=A2=9Eworkflow=E6=96=87?= =?UTF-8?q?=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/pypi-publish.yml | 36 ++++++++++++++++++++++++++++++ pyproject.toml | 5 ----- 2 files changed, 36 insertions(+), 5 deletions(-) create mode 100644 .github/workflows/pypi-publish.yml diff --git a/.github/workflows/pypi-publish.yml b/.github/workflows/pypi-publish.yml new file mode 100644 index 0000000..35511f6 --- /dev/null +++ b/.github/workflows/pypi-publish.yml @@ -0,0 +1,36 @@ +name: Publish + +on: + push: + tags: + - '*' + workflow_dispatch: + +jobs: + pypi-publish: + name: Upload release to PyPI + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@master + - name: Set up Python + uses: actions/setup-python@v1 + with: + python-version: "3.x" + - name: Install pypa/build + run: >- + python -m + pip install + build + --user + - name: Build a binary wheel and a source tarball + run: >- + python -m + build + --sdist + --wheel + --outdir dist/ + . + - name: Publish distribution to PyPI + uses: pypa/gh-action-pypi-publish@release/v1 + with: + password: ${{ secrets.PYPI_API_TOKEN }} diff --git a/pyproject.toml b/pyproject.toml index d99d494..ed387e2 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -23,11 +23,6 @@ adapters = [ { name = "OneBot V11", module_name = "nonebot.adapters.onebot.v11" } ] -[tool.poetry.dependencies] -python = "^3.8" -nonebot2 = { version = "^2.2.0", extras = ["fastapi"] } -nonebot-plugin-alconna = ">=0.38.0,<1.0.0" - [tool.pdm] distribution = true