Skip to content

ci: publish the PyPI wheel from release-pypi.yml after Java Release succeeds - #224

Merged
rahlk merged 1 commit into
mainfrom
ci/issue-222-release-pypi-workflow
Sep 6, 2026
Merged

ci: publish the PyPI wheel from release-pypi.yml after Java Release succeeds#224
rahlk merged 1 commit into
mainfrom
ci/issue-222-release-pypi-workflow

Conversation

@rahlk

@rahlk rahlk commented Sep 6, 2026

Copy link
Copy Markdown
Collaborator

Refs #222

The PyPI Trusted Publisher is bound to release-pypi.yml + the pypi environment, so v3.0.2's publish step in release.yml failed with invalid-publisher.

  • release-pypi.yml: workflow_run on "Java Release" success (a GITHUB_TOKEN-created release never fires release: published), downloads the released codeanalyzer.jar, builds the wheel, publishes under environment: pypi. workflow_dispatch with a tag re-publishes on demand.
  • release.yml: publish steps and id-token removed; version check and release notes unchanged.

After merge: move tag v3.0.2 to the new main and re-push to rerun both.

…ucceeds

The PyPI Trusted Publisher for codeanalyzer-java is bound to the workflow file
release-pypi.yml and the pypi environment, so the publish step cannot live in
release.yml (v3.0.2 failed there with invalid-publisher). The wheel is now built
from the released codeanalyzer.jar asset, in a workflow_run job that fires when
Java Release succeeds; a release created with GITHUB_TOKEN would not trigger
release: published. workflow_dispatch re-publishes a tag on demand.

Refs #222
@rahlk
rahlk merged commit 25ad5f3 into main Sep 6, 2026
@rahlk
rahlk deleted the ci/issue-222-release-pypi-workflow branch September 6, 2026 17:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant