From ad3e255e746be886b9506ea06a347f92eb42f6c3 Mon Sep 17 00:00:00 2001 From: Alexander Nicolay Date: Tue, 7 Jul 2026 15:22:09 +0200 Subject: [PATCH] PyPI release workflow, version 0.2.0 --- .github/workflows/release.yml | 20 ++++++++++++++++++++ flake.nix | 2 +- pyproject.toml | 2 +- src/matebot/__init__.py | 2 +- 4 files changed, 23 insertions(+), 3 deletions(-) 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..b2743a3 --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,20 @@ +name: Release +on: + push: + tags: ["v*"] + +jobs: + pypi: + runs-on: ubuntu-latest + environment: pypi + permissions: + id-token: write # trusted publishing (OIDC), no tokens stored + contents: read + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-python@v5 + with: + python-version: "3.13" + - run: pip install build + - run: python -m build + - uses: pypa/gh-action-pypi-publish@release/v1 diff --git a/flake.nix b/flake.nix index 90c6898..bbbce9c 100644 --- a/flake.nix +++ b/flake.nix @@ -13,7 +13,7 @@ default = matebot; matebot = pkgs.python3Packages.buildPythonApplication { pname = "matebot"; - version = "0.1.0"; + version = "0.2.0"; pyproject = true; src = self; build-system = [ pkgs.python3Packages.hatchling ]; diff --git a/pyproject.toml b/pyproject.toml index 52295e1..663c80a 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "hatchling.build" [project] name = "matebot" -version = "0.1.0" +version = "0.2.0" description = "The proactive companion for GaggiMate espresso machines: post-shot logging bot, .slog decoder, shot-journal site generator" readme = "README.md" license = "MIT" diff --git a/src/matebot/__init__.py b/src/matebot/__init__.py index c660aa2..5166766 100644 --- a/src/matebot/__init__.py +++ b/src/matebot/__init__.py @@ -1,3 +1,3 @@ """matebot — the proactive companion for GaggiMate espresso machines.""" -__version__ = "0.1.0" +__version__ = "0.2.0"