From ded0dfd3915531ac194b1624f12eaea92cadcfa3 Mon Sep 17 00:00:00 2001 From: Matthias Koeppe Date: Sun, 24 Dec 2023 17:41:26 -0800 Subject: [PATCH] py: version 0.0.5 --- .github/workflows/python-publish.yml | 23 +++++++++++++++++++++++ py/src/gnumake_tokenpool/tokenpool.py | 2 +- 2 files changed, 24 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/python-publish.yml diff --git a/.github/workflows/python-publish.yml b/.github/workflows/python-publish.yml new file mode 100644 index 0000000..da893ea --- /dev/null +++ b/.github/workflows/python-publish.yml @@ -0,0 +1,23 @@ +name: Publish Python package + +on: + push: + tags: + - 'py/*' + +jobs: + pypi-publish: + name: Upload release to PyPI + runs-on: ubuntu-latest + environment: + name: release + url: https://pypi.org/p/gnumake-tokenpool + permissions: + id-token: write # IMPORTANT: this permission is mandatory for trusted publishing + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-python@v4 + - run: python3 -m pip install build + - run: python3 -m build + - name: Publish package distributions to PyPI + uses: pypa/gh-action-pypi-publish@release/v1 diff --git a/py/src/gnumake_tokenpool/tokenpool.py b/py/src/gnumake_tokenpool/tokenpool.py index dc1b5b6..0821186 100644 --- a/py/src/gnumake_tokenpool/tokenpool.py +++ b/py/src/gnumake_tokenpool/tokenpool.py @@ -4,7 +4,7 @@ from datetime import datetime from typing import List -__version__ = '0.0.4' +__version__ = '0.0.5' class NoJobServer(Exception):