diff --git a/.github/workflows/build-publish-package.yml b/.github/workflows/build-publish-package.yml index e9fc6d0..aaacd57 100644 --- a/.github/workflows/build-publish-package.yml +++ b/.github/workflows/build-publish-package.yml @@ -23,10 +23,17 @@ jobs: with: name: dist path: dist/* - - # Publishing to PyPI. Necessary? - # - name: Publish to PyPI - # uses: pypa/gh-action-pypi-publish@master - # with: - # user: __token__ - # password: ${{ secrets.PYPI_API_TOKEN }} + - name: Check Version Format in Tag + if: startsWith(github.ref, 'refs/tags/v') + uses: nowsprinting/check-version-format-action@v4.0.2 + id: check-version + with: + prefix: 'v' + - name: Publish to PyPI + if: startsWith(github.ref, 'refs/tags/') + env: + TWINE_USERNAME: '__token__' + TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }} + run: | + pip install twine + twine upload dist/* diff --git a/README.md b/README.md index 46b9d57..fb273ce 100644 --- a/README.md +++ b/README.md @@ -16,7 +16,7 @@ This is a fork of [pykube-ng](https://codeberg.org/hjacobs/pykube-ng) which is n To install pykube, use pip: ```bash -pip install pykube-ng +pip install new-pykube ``` diff --git a/pyproject.toml b/pyproject.toml index 5db4ab1..d3f7f2b 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,7 +1,7 @@ [tool] [tool.poetry] name = "new-pykube" -version = "23.6.0" +version = "24.5.1" description = "Python client library for Kubernetes" license = "Apache" classifiers = [ @@ -18,7 +18,7 @@ classifiers = [ "Programming Language :: Python :: 3.10", "Programming Language :: Python :: 3 :: Only", ] -authors = ["Eldarion, Inc. ", "Henning Jacobs "] +authors = ["Jonathan Mayer ", "Jan Taeuber ", "Johannes Thiem "] readme = "README.md" homepage = "https://github.com/caas-team/new-pykube" packages = [{ include = "pykube" }]