新增workflow文件

This commit is contained in:
Asankilp 2024-07-11 11:14:12 +00:00
parent 7b8b04e5ab
commit f1e3a1aefc
2 changed files with 36 additions and 5 deletions

36
.github/workflows/pypi-publish.yml vendored Normal file
View File

@ -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 }}

View File

@ -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