Update release script

This commit is contained in:
Alex Root Junior 2023-01-08 22:51:13 +02:00
parent f5b8e30c9f
commit d2ac20bd6a
No known key found for this signature in database
GPG key ID: 074C1D455EBEA4AC
2 changed files with 18 additions and 19 deletions

View file

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

View file

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