Skip to content

Publish release artifacts by package version#24

Merged
Volv-G merged 1 commit into
masterfrom
piforge/tangle-cli-scheduler-retries-fix/release-conditional-publish
Jul 8, 2026
Merged

Publish release artifacts by package version#24
Volv-G merged 1 commit into
masterfrom
piforge/tangle-cli-scheduler-retries-fix/release-conditional-publish

Conversation

@Volv-G

@Volv-G Volv-G commented Jul 8, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • replace the tangle-cli-only upload step with per-package publish planning
  • publish tangle-cli and/or tangle-api only when that package version is absent from PyPI
  • skip already-published versions by version existence instead of comparing rebuilt artifact hashes

Context

The tangle-cli 0.1.1 publish failed twice because the release job had built both packages and uv publish --check-url considered already-published tangle-api==0.1.0 artifacts. This makes the release workflow robust for CLI-only, API-only, and combined future releases without reprocessing unchanged package versions.

No v0.1.1 re-tag is needed; this is forward-looking for future tags.

Testing

  • uv run --isolated --no-project python /tmp/test_pypi_version_check.py
    • tangle-cli 0.1.1 -> skip
    • tangle-api 0.1.0 -> skip
    • tangle-cli 99.99.99 -> publish
    • tangle-api 99.99.99 -> publish
  • Ran the workflow publish-plan script locally with GITHUB_OUTPUT set:
    • publish_cli=false
    • publish_api=false
  • actionlint .github/workflows/release.yaml

@Volv-G Volv-G requested a review from Ark-kun as a code owner July 8, 2026 04:51
@Volv-G Volv-G merged commit 4785685 into master Jul 8, 2026
2 checks passed
@Volv-G Volv-G deleted the piforge/tangle-cli-scheduler-retries-fix/release-conditional-publish branch July 8, 2026 04: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