Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

- `publish-pypi` checks the dist with `uvx twine` instead of `uv pip install --system twine`, which fails on PEP 668 externally-managed CPython from `setup-uv`.
- `publish-pypi` uploads with `uv publish` instead of `pypa/gh-action-pypi-publish`. Nested Docker actions resolve to `ghcr.io/qntx/workflows:<sha>` and 403.
- `publish-pypi` does not export empty `UV_PUBLISH_URL`; uv treats `''` as an invalid `--publish-url`.

### Added

Expand Down
6 changes: 3 additions & 3 deletions actions/publish-pypi/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,16 +39,16 @@ runs:
working-directory: ${{ inputs.working-directory }}
env:
UV_PUBLISH_TOKEN: ${{ env.PYPI_TOKEN }}
UV_PUBLISH_URL: ${{ inputs.repository-url }}
ATTESTATIONS: ${{ inputs.attestations }}
REPOSITORY_URL: ${{ inputs.repository-url }}
run: |
set -euo pipefail
extra=()
if [ -z "${UV_PUBLISH_TOKEN:-}" ]; then
extra+=(--trusted-publishing always)
fi
if [ -n "${UV_PUBLISH_URL:-}" ]; then
extra+=(--publish-url "$UV_PUBLISH_URL")
if [ -n "${REPOSITORY_URL:-}" ]; then
extra+=(--publish-url "$REPOSITORY_URL")
fi
if [ "${ATTESTATIONS}" != "true" ]; then
extra+=(--no-attestations)
Expand Down
Loading