Skip to content

Commit 0d1c4bd

Browse files
wphillipmoorewphillipmoore-claude
andauthored
fix(ci): move PyPI publish before SBOM generation (#430)
Reverts the ordering regression from #392. The SBOM writes a .cdx.json file into dist/ which causes pypa/gh-action-pypi-publish to fail with InvalidDistribution. PyPI publish must run before SBOM generation, matching the original fix in #284. Co-authored-by: wphillipmoore-claude <255925739+wphillipmoore-claude@users.noreply.github.com>
1 parent 9e67101 commit 0d1c4bd

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

.github/workflows/publish.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,10 @@ jobs:
8080
with:
8181
subject-path: "dist/*"
8282

83+
- name: Publish to PyPI
84+
if: steps.pypi_check.outputs.status == 'not_found'
85+
uses: pypa/gh-action-pypi-publish@release/v1
86+
8387
- name: Generate SBOM
8488
if: steps.tag_check.outputs.exists == 'false'
8589
uses: wphillipmoore/standard-actions/actions/security/trivy@develop
@@ -106,10 +110,6 @@ jobs:
106110
- [Documentation](https://wphillipmoore.github.io/mq-rest-admin-python/)
107111
release-artifacts: dist/*
108112

109-
- name: Publish to PyPI
110-
if: steps.pypi_check.outputs.status == 'not_found'
111-
uses: pypa/gh-action-pypi-publish@release/v1
112-
113113
- name: Generate app token for bump PR
114114
if: steps.tag_check.outputs.exists == 'false'
115115
id: app-token

0 commit comments

Comments
 (0)