mirror of
https://github.com/aiogram/aiogram.git
synced 2026-04-08 16:37:47 +00:00
Update release script
This commit is contained in:
parent
f5b8e30c9f
commit
d2ac20bd6a
2 changed files with 18 additions and 19 deletions
|
|
@ -1,4 +1,4 @@
|
|||
name: Deploy
|
||||
name: "Deploy"
|
||||
|
||||
on:
|
||||
push:
|
||||
|
|
@ -17,16 +17,12 @@ jobs:
|
|||
with:
|
||||
python-version: "3.10"
|
||||
|
||||
- name: Install and configure Poetry
|
||||
uses: snok/install-poetry@v1
|
||||
with:
|
||||
version: 1.2.1
|
||||
virtualenvs-create: false
|
||||
installer-parallel: true
|
||||
- name: Install build dependencies
|
||||
run: python -m pip install --upgrade build
|
||||
|
||||
- name: Build source distribution
|
||||
run: python -m build .
|
||||
|
||||
- name: Build
|
||||
run: |
|
||||
poetry build
|
||||
- name: Try install wheel
|
||||
run: |
|
||||
pip install -U virtualenv
|
||||
|
|
@ -53,17 +49,17 @@ jobs:
|
|||
name: dist
|
||||
path: dist
|
||||
|
||||
# - name: Publish a Python distribution to Test PyPI
|
||||
# uses: pypa/gh-action-pypi-publish@master
|
||||
## if: github.event.action != 'published'
|
||||
# with:
|
||||
# user: __token__
|
||||
# password: ${{ secrets.PYPI_TEST_TOKEN }}
|
||||
# repository_url: https://test.pypi.org/legacy/
|
||||
# - name: Publish a Python distribution to Test PyPI
|
||||
# uses: pypa/gh-action-pypi-publish@master
|
||||
## if: github.event.action != 'published'
|
||||
# with:
|
||||
# user: __token__
|
||||
# password: ${{ secrets.PYPI_TEST_TOKEN }}
|
||||
# repository_url: https://test.pypi.org/legacy/
|
||||
|
||||
- name: Publish a Python distribution to PyPI
|
||||
uses: pypa/gh-action-pypi-publish@master
|
||||
# if: github.event.action == 'published'
|
||||
# if: github.event.action == 'published'
|
||||
with:
|
||||
user: __token__
|
||||
password: ${{ secrets.PYPI_TOKEN }}
|
||||
|
|
@ -1,7 +1,9 @@
|
|||
from contextlib import suppress
|
||||
|
||||
from aiogram.dispatcher.flags import FlagGenerator
|
||||
|
||||
from . import methods
|
||||
from . import types
|
||||
from . import enums
|
||||
from .client import session
|
||||
from .client.bot import Bot
|
||||
from .dispatcher.dispatcher import Dispatcher
|
||||
|
|
@ -24,6 +26,7 @@ __all__ = (
|
|||
"__version__",
|
||||
"types",
|
||||
"methods",
|
||||
"enums",
|
||||
"Bot",
|
||||
"session",
|
||||
"Dispatcher",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue