From 289d52631b6ed2f0f3677e71e8cfebbd8609c266 Mon Sep 17 00:00:00 2001 From: "Daniel D." <53611126+fenrisl@users.noreply.github.com> Date: Tue, 24 Jun 2025 11:29:33 +0000 Subject: [PATCH] Updated release pipeline --- .github/workflows/release.yml | 37 ++++++++++++++++++++--------------- setup.py | 2 +- 2 files changed, 22 insertions(+), 17 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index ffdcba6..e1535d4 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -10,20 +10,25 @@ jobs: runs-on: ubuntu-22.04 steps: - - uses: actions/checkout@master - - name: Set up Python 3.8.18 - uses: actions/setup-python@v1 - with: - python-version: 3.8.18 + - uses: actions/checkout@v4 - - name: Install dependencies - run: | - pip3 install --user --upgrade setuptools wheel twine - - name: Build source archive and build distribution - run: | - python3 setup.py sdist bdist_wheel - - name: Publish distribution 📦 to PyPI - uses: pypa/gh-action-pypi-publish@release/v1 - with: - user: __token__ - password: ${{ secrets.pypi_password }} + - name: Set up Python 3.12 + uses: actions/setup-python@v5 + with: + python-version: '3.12' + cache: 'pip' + + - name: Install build dependencies + run: | + python -m pip install --upgrade pip + pip install --upgrade build twine + + - name: Build source archive and wheel + run: | + python -m build + + - name: Publish distribution 📦 to PyPI + uses: pypa/gh-action-pypi-publish@release/v1 + with: + user: __token__ + password: ${{ secrets.pypi_password }} diff --git a/setup.py b/setup.py index 3b8f6ec..457b018 100644 --- a/setup.py +++ b/setup.py @@ -2,7 +2,7 @@ setup( name='cyberwatch_api', - version='0.3.9', + version='0.3.10', description='Python Api client for the Cyberwatch software', long_description=open('README.md').read().strip(), long_description_content_type="text/markdown",