From 5abd9ad0c4e8f4ed90325b7337baa906ecc6834b Mon Sep 17 00:00:00 2001 From: Alex Root Junior Date: Wed, 12 May 2021 00:13:03 +0300 Subject: [PATCH] Bump version. Added pipeline for test PyPi --- .apiversion | 2 +- .github/workflows/testpypi.yml | 65 ++++++++++++++++++++++++++++++++++ aiogram/__init__.py | 4 +-- docs/_api_version.md | 2 +- docs/_package_version.md | 2 +- pyproject.toml | 2 +- 6 files changed, 71 insertions(+), 6 deletions(-) create mode 100644 .github/workflows/testpypi.yml diff --git a/.apiversion b/.apiversion index 83364075..341d0b55 100644 --- a/.apiversion +++ b/.apiversion @@ -1 +1 @@ -5.1 \ No newline at end of file +5.2 \ No newline at end of file diff --git a/.github/workflows/testpypi.yml b/.github/workflows/testpypi.yml new file mode 100644 index 00000000..6ac2bd3d --- /dev/null +++ b/.github/workflows/testpypi.yml @@ -0,0 +1,65 @@ +name: Deploy + +on: + push: + tags: + - 'v3.*' + +jobs: + build: + name: Build + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@master + + - name: Set up Python 3.9 + uses: actions/setup-python@v2 + with: + python-version: 3.9 + + - name: Install dependencies + run: | + pip install -U pip virtualenv poetry + poetry config virtualenvs.create false + - name: Build + run: | + poetry build + - name: Try install wheel + run: | + mkdir -p try_install + cd try_install + virtualenv venv + venv/bin/pip install ../dist/aiogram-*.whl + venv/bin/python -c "import aiogram; print(__version__)" + - name: Publish artifacts + uses: actions/upload-artifact@v2 + with: + name: dist + path: dist/* + + publish: + name: Publish + needs: build + if: "success() && startsWith(github.ref, 'refs/tags/')" + runs-on: ubuntu-latest + steps: + - name: Download artifacts + uses: actions/download-artifact@v1 + with: + 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 PyPI +# uses: pypa/gh-action-pypi-publish@master +# if: github.event.action == 'published' +# with: +# user: __token__ +# password: ${{ secrets.PYPI_TOKEN }} diff --git a/aiogram/__init__.py b/aiogram/__init__.py index 7c756601..31b52552 100644 --- a/aiogram/__init__.py +++ b/aiogram/__init__.py @@ -31,5 +31,5 @@ __all__ = ( "F", ) -__version__ = "3.0.0-alpha.6" -__api_version__ = "5.1" +__version__ = "3.0.0-alpha.8" +__api_version__ = "5.2" diff --git a/docs/_api_version.md b/docs/_api_version.md index a75b92f1..ef425ca9 100644 --- a/docs/_api_version.md +++ b/docs/_api_version.md @@ -1 +1 @@ -5.1 +5.2 diff --git a/docs/_package_version.md b/docs/_package_version.md index d2cc0e7f..64b4953b 100644 --- a/docs/_package_version.md +++ b/docs/_package_version.md @@ -1 +1 @@ -3.0.0a7 +3.0.0a8 diff --git a/pyproject.toml b/pyproject.toml index b465f2a2..a480cbb9 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "aiogram" -version = "3.0.0-alpha.7" +version = "3.0.0-alpha.8" description = "Modern and fully asynchronous framework for Telegram Bot API" authors = ["Alex Root Junior "] license = "MIT"