From 47468f90673be5663c1b5cb417931cfef1cfd5cd Mon Sep 17 00:00:00 2001 From: Jacob Bandes-Storch Date: Wed, 11 Dec 2024 15:59:33 -0800 Subject: [PATCH] Fix PyPI publishing (#158) 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 https://github.com/pypa/gh-action-pypi-publish/issues/283#issuecomment-2499296440 is to set `attestations: false` on the TestPyPI publish. --- .github/workflows/ci.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 954a569..243542b 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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: | @@ -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: |