Skip to content

[codex] Publish PyPI artifacts from GitHub release assets#1831

Merged
FlorianPfaff merged 3 commits intomainfrom
codex/publish-release-assets-only
Apr 24, 2026
Merged

[codex] Publish PyPI artifacts from GitHub release assets#1831
FlorianPfaff merged 3 commits intomainfrom
codex/publish-release-assets-only

Conversation

@FlorianPfaff
Copy link
Copy Markdown
Owner

@FlorianPfaff FlorianPfaff commented Apr 24, 2026

Summary

  • Make the manual release_tag input optional; when it is left blank, the workflow resolves the latest GitHub Release and uses that tag.
  • Default manual publishes to PyPI while keeping TestPyPI selectable.
  • Download wheel and sdist assets from the resolved GitHub Release for both automatic and manual publishes.
  • Remove the manual poetry build path so PyPI/TestPyPI receives the same artifacts that are attached to the GitHub Release.

Validation

  • Reviewed the generated diff for .github/workflows/publish-to-pypi.yml.
  • Did not run actionlint because this environment does not have a local checkout of the repository.

@github-actions
Copy link
Copy Markdown
Contributor

MegaLinter analysis: Success

Descriptor Linter Files Fixed Errors Warnings Elapsed time
✅ COPYPASTE jscpd yes no no 11.46s
✅ JSON prettier 2 0 0 0 0.5s
✅ JSON v8r 2 0 0 2.42s
✅ MARKDOWN markdownlint 2 0 0 0 0.69s
✅ MARKDOWN markdown-table-formatter 2 0 0 0 0.2s
✅ PYTHON bandit 366 0 0 5.08s
✅ PYTHON black 366 12 0 0 7.38s
✅ PYTHON flake8 366 0 0 2.67s
✅ PYTHON isort 366 13 0 0 0.69s
✅ PYTHON mypy 366 0 0 4.68s
✅ PYTHON pylint 366 0 0 104.48s
✅ PYTHON ruff 366 13 0 0 0.07s
✅ REPOSITORY checkov yes no no 21.22s
✅ REPOSITORY gitleaks yes no no 6.65s
✅ REPOSITORY git_diff yes no no 0.1s
✅ REPOSITORY secretlint yes no no 7.02s
✅ REPOSITORY syft yes no no 3.21s
✅ REPOSITORY trivy-sbom yes no no 1.97s
✅ REPOSITORY trufflehog yes no no 17.93s
✅ YAML prettier 4 0 0 0 0.43s
✅ YAML v8r 4 0 0 5.28s
✅ YAML yamllint 4 0 0 0.48s

See detailed reports in MegaLinter artifacts

Your project could benefit from a custom flavor, which would allow you to run only the linters you need, and thus improve runtime performances. (Skip this info by defining FLAVOR_SUGGESTIONS: false)

  • Documentation: Custom Flavors
  • Command: npx mega-linter-runner@9.4.0 --custom-flavor-setup --custom-flavor-linters PYTHON_PYLINT,PYTHON_BLACK,PYTHON_FLAKE8,PYTHON_ISORT,PYTHON_BANDIT,PYTHON_MYPY,PYTHON_RUFF,COPYPASTE_JSCPD,JSON_V8R,JSON_PRETTIER,MARKDOWN_MARKDOWNLINT,MARKDOWN_MARKDOWN_TABLE_FORMATTER,REPOSITORY_CHECKOV,REPOSITORY_GIT_DIFF,REPOSITORY_GITLEAKS,REPOSITORY_SECRETLINT,REPOSITORY_SYFT,REPOSITORY_TRIVY_SBOM,REPOSITORY_TRUFFLEHOG,YAML_PRETTIER,YAML_YAMLLINT,YAML_V8R

MegaLinter is graciously provided by OX Security
Show us your support by starring ⭐ the repository

@FlorianPfaff FlorianPfaff marked this pull request as ready for review April 24, 2026 09:01
@FlorianPfaff FlorianPfaff merged commit 1345794 into main Apr 24, 2026
17 checks passed
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