From fa411c308a65d433a58a1f104eeff654ba660ab5 Mon Sep 17 00:00:00 2001 From: Andrius Jucius Date: Thu, 20 Oct 2022 13:58:17 +0300 Subject: [PATCH] [ADD] github release workflow --- cherry/.github/workflows/publish.yml | 18 ++++++++++++++++++ cherry/__init__.py | 2 +- setup.py | 2 +- 3 files changed, 20 insertions(+), 2 deletions(-) create mode 100644 cherry/.github/workflows/publish.yml diff --git a/cherry/.github/workflows/publish.yml b/cherry/.github/workflows/publish.yml new file mode 100644 index 0000000..66f6954 --- /dev/null +++ b/cherry/.github/workflows/publish.yml @@ -0,0 +1,18 @@ +name: Upload Python Package on Release + +on: + release: + workflow_dispatch: +jobs: + pypi: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v3 + with: + fetch-depth: 0 + - run: python3 -m pip install --upgrade build && python3 -m build + - name: Publish package + uses: pypa/gh-action-pypi-publish@release/v1 + with: + password: ${{ secrets.PYPI_API_TOKEN }} \ No newline at end of file diff --git a/cherry/__init__.py b/cherry/__init__.py index 2d07706..9fd95e8 100644 --- a/cherry/__init__.py +++ b/cherry/__init__.py @@ -2,7 +2,7 @@ """Cherry Servers API library""" -__version__ = "0.2.1" +__version__ = "0.3.0" __author__ = "Arturas Razinskij" __author_email__ = "arturas.razinskij@cherryservers.com" __license__ = "LGPL v3" diff --git a/setup.py b/setup.py index 71137e2..78faca5 100644 --- a/setup.py +++ b/setup.py @@ -6,7 +6,7 @@ setup(name='cherry-python', maintainer="Cherry Servers Developers", maintainer_email="support@cherryservers.com", - version='0.2.1', + version='0.3.0', description='Cherry Servers API client', long_description=long_description, long_description_content_type='text/markdown',