diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 45c75a4..3a20ee2 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -73,7 +73,12 @@ jobs: permissions: id-token: write # PyPI Trusted Publishing — no API-token secret in this repository steps: - - uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1 + # Before the artifact: checkout cleans the workspace. `uv publish --index` reads the index + # from pyproject.toml, so this job needs the tree as well as the distributions. + - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 + with: + persist-credentials: false + - uses: actions/download-artifact@37930b1c2abaa49bbe596cd826c3c89aef350131 # v7.0.0 with: name: dist path: dist