From 73ec7e214ec029b2b84a6d71dbc5be42ef5df3c5 Mon Sep 17 00:00:00 2001 From: FZambia Date: Mon, 29 Jan 2024 00:13:33 +0200 Subject: [PATCH] add release workflow --- .github/workflows/release.yml | 31 +++++++++++++++++++++++++++++++ setup.py | 2 +- 2 files changed, 32 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/release.yml diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..d3e950c --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,31 @@ +name: Release to PyPI + +on: + push: + tags: + - '*' + +jobs: + release: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + + - name: Set up Python + uses: actions/setup-python@v5 + with: + python-version: '3.12' + + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install setuptools wheel twine + + - name: Build package + run: | + python setup.py sdist bdist_wheel + + - name: Publish package to PyPI + uses: pypa/gh-action-pypi-publish@release/v1 + with: + password: ${{ secrets.PYPI_PASSWORD }} diff --git a/setup.py b/setup.py index 3a49968..eea37ef 100644 --- a/setup.py +++ b/setup.py @@ -3,7 +3,7 @@ setup( name='centrifuge-python', - version='0.3', + version='0.3.0b0', description="Websocket real-time SDK for Centrifugo on top of asyncio library", install_requires=[ "websockets>=11.0.3,<12.0.0",