Skip to content

Commit

Permalink
Fix PyPI publishing (#158)
Browse files Browse the repository at this point in the history
Running a publish to TestPyPI immediately followed by a publish to the
"real" PyPI triggered [an
error](https://github.com/foxglove/schemas/actions/runs/12283736365/job/34277883747)
due to a file already existing. The workaround recommended in
pypa/gh-action-pypi-publish#283 (comment)
is to set `attestations: false` on the TestPyPI publish.
  • Loading branch information
jtbandes authored Dec 11, 2024
1 parent 292b165 commit 47468f9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@ jobs:
packages_dir: python/foxglove-schemas-flatbuffer/dist
repository_url: https://test.pypi.org/legacy/
skip_existing: true
attestations: false # https://github.com/pypa/gh-action-pypi-publish/issues/283#issuecomment-2499296440

- name: Publish foxglove-schemas-flatbuffer to PyPI
if: |
Expand All @@ -115,6 +116,7 @@ jobs:
packages_dir: python/foxglove-schemas-protobuf/dist
repository_url: https://test.pypi.org/legacy/
skip_existing: true
attestations: false # https://github.com/pypa/gh-action-pypi-publish/issues/283#issuecomment-2499296440

- name: Publish foxglove-schemas-protobuf to PyPI
if: |
Expand Down

0 comments on commit 47468f9

Please sign in to comment.