From a601b015315add883a24b10753daac5421c34c3f Mon Sep 17 00:00:00 2001 From: Salomon Popp Date: Wed, 15 Jan 2025 15:07:41 +0100 Subject: [PATCH] Set trusted publishing in pyproject --- .github/workflows/ci.yaml | 2 +- .github/workflows/publish.yaml | 2 +- pyproject.toml | 1 + 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 9a4b7b089..de44c9bec 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -182,7 +182,7 @@ jobs: run: uv build - name: Publish TestPyPI - run: uv publish --trusted-publishing always + run: uv publish env: UV_PUBLISH_URL: https://test.pypi.org/legacy/ diff --git a/.github/workflows/publish.yaml b/.github/workflows/publish.yaml index 63d2b190e..a11f70835 100644 --- a/.github/workflows/publish.yaml +++ b/.github/workflows/publish.yaml @@ -23,4 +23,4 @@ jobs: run: uv build - name: Publish - run: uv publish --trusted-publishing always + run: uv publish diff --git a/pyproject.toml b/pyproject.toml index 0c5431c10..180bb0206 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -65,6 +65,7 @@ docs = [ [tool.uv] package = true +trusted-publishing = "always" [build-system] requires = ["hatchling"]