From 41750d19d3522aad69a02d54559c8b3d04e6c1f2 Mon Sep 17 00:00:00 2001 From: bartzbeielstein <32470350+bartzbeielstein@users.noreply.github.com> Date: Mon, 1 Jun 2026 01:29:38 +0200 Subject: [PATCH] fix(release): publish to PyPI by correcting semantic-release output name MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The "Publish to PyPI" step was gated on ``steps.release.outputs.new-release-published``, but cycjimmy/semantic-release-action exposes its outputs with underscores (``new_release_published``). The hyphenated reference was always empty, so the step was silently skipped on every release — which is why the 0.11.x and 0.12.x series never reached PyPI (latest published there is 0.10.3) while the GitHub Releases carried the wheels. Use the correct ``new_release_published`` output so a released version is actually uploaded to PyPI. This `fix:` commit itself cuts the next patch (0.12.4), which the corrected workflow will publish — restoring PyPI as a resolvable source for downstreams that pin recent spotoptim (e.g. spotforecast2 >= 0.12.3). Co-Authored-By: Claude Opus 4.8 (1M context) --- .github/workflows/release.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 94a9c2b7..a2bd38c3 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -70,8 +70,13 @@ jobs: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # ── Publish to PyPI (only when a new version was released) ──────── + # NOTE: cycjimmy/semantic-release-action exposes its outputs with + # underscores (``new_release_published``), not hyphens. The previous + # ``new-release-published`` reference was always empty, so this step was + # silently skipped for every release since the action was adopted — + # which is why 0.11.x/0.12.x never reached PyPI. - name: Publish to PyPI - if: steps.release.outputs.new-release-published == 'true' + if: steps.release.outputs.new_release_published == 'true' uses: pypa/gh-action-pypi-publish@cef221092ed1bacb1cc03d23a2d87d1d172e277b # v1.14.0 with: packages-dir: dist/