From ddabc4efa7af8aa4ecc74fcbda15548d78da3e4d Mon Sep 17 00:00:00 2001 From: long2ice Date: Wed, 16 Sep 2020 16:13:20 +0800 Subject: [PATCH] update version to 0.16.15 and add pypi workflow trigger when release --- .github/workflows/pypi.yml | 23 +++++++++++++++++++++++ tortoise/__init__.py | 2 +- 2 files changed, 24 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/pypi.yml diff --git a/.github/workflows/pypi.yml b/.github/workflows/pypi.yml new file mode 100644 index 000000000..1b8583ac4 --- /dev/null +++ b/.github/workflows/pypi.yml @@ -0,0 +1,23 @@ +name: pypi +on: + release: + types: + - created +jobs: + publish: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: actions/setup-python@v1 + with: + python-version: '3.x' + - uses: dschep/install-poetry-action@v1.3 + - name: Install requirements + run: make deps + - name: Build dists + run: python setup.py sdist + - name: Pypi Publish + uses: pypa/gh-action-pypi-publish@master + with: + user: __token__ + password: ${{ secrets.pypi_password }} diff --git a/tortoise/__init__.py b/tortoise/__init__.py index 982277d44..1b9520f7a 100644 --- a/tortoise/__init__.py +++ b/tortoise/__init__.py @@ -638,4 +638,4 @@ async def do_stuff(): loop.run_until_complete(Tortoise.close_connections()) -__version__ = "0.16.14" +__version__ = "0.16.15"