From d18b85ca0f5a178e9d4c0f560a7f2a076e4adbb3 Mon Sep 17 00:00:00 2001 From: Bruno Oliveira Date: Thu, 24 Oct 2024 09:08:42 -0300 Subject: [PATCH 1/2] Prepare release 2.2.0 CHANGELOG: remove the release date from the header, this way we can have stable/predictable links to changelog entries. --- .github/workflows/main.yml | 4 ++++ CHANGELOG.rst | 6 ++++-- README.rst | 3 +-- 3 files changed, 9 insertions(+), 4 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 9893e00..01937a8 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -64,6 +64,10 @@ jobs: user: __token__ password: ${{ secrets.pypi_token }} attestations: true + - name: GitHub Release + uses: softprops/action-gh-release@v2.0.8 + with: + files: dist/* sonarcloud: diff --git a/CHANGELOG.rst b/CHANGELOG.rst index 1d2c275..301acf9 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -1,5 +1,7 @@ -2.2.0 (UNRELEASED) ------------------- +2.2.0 +----- + +**Release**: 2024-10-24 * ``PriorityCallback`` now has type checking support, similar to ``Callback``, with type checked variants: ``PriorityCallback0``, ``PriorityCallback1``, etc (`#128`_). * ``UnregisterContext`` is now public, meant to be used in type annotations. diff --git a/README.rst b/README.rst index 829476d..8129e4f 100644 --- a/README.rst +++ b/README.rst @@ -121,8 +121,7 @@ Release ------- A reminder for the maintainers on how to make a new release. -Note that the VERSION should follow the semantic versioning as X.Y.Z -Ex.: v1.0.5 +Note that the VERSION should follow the semantic versioning as ``X.Y.Z`` (e.g. ``v1.0.5``). 1. Create a ``release-VERSION`` branch from ``upstream/master``. 2. Update ``CHANGELOG.rst``. From c1dcecc89caa20cc12d2b54176bcde406e7f6af6 Mon Sep 17 00:00:00 2001 From: Bruno Oliveira Date: Thu, 24 Oct 2024 09:16:18 -0300 Subject: [PATCH 2/2] Trigger main workflow also on tags We push tags for deploying. --- .github/workflows/main.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 01937a8..d98af5a 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -4,6 +4,8 @@ on: push: branches: - master + tags: + - "v[0-9]+.[0-9]+.[0-9]+" pull_request: