From 040504acdbc9d0ed49a99afed36b443501759c0a Mon Sep 17 00:00:00 2001 From: ubaskota <19787410+ubaskota@users.noreply.github.com> Date: Fri, 26 Jun 2026 17:15:40 -0400 Subject: [PATCH 1/2] Add release workflow for trusted publishing --- .github/workflows/release.yml | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 .github/workflows/release.yml diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 000000000000..3a830b35be36 --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,32 @@ +name: Publish to PyPI + +on: + workflow_dispatch: + +jobs: + publish: + runs-on: ubuntu-latest + environment: pypi + permissions: + id-token: write + steps: + - uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 + with: + persist-credentials: false + + - uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 + with: + python-version: "3.x" + + - name: Install build + run: python -m pip install build + + - name: Build distributions + run: python -m build + + - name: Publish to PyPI + uses: pypa/gh-action-pypi-publish@cef221092ed1bacb1cc03d23a2d87d1d172e277b # release/v1.14.0 + with: + repository-url: https://upload.pypi.org/legacy/ + skip-existing: true + \ No newline at end of file From 6004854318a8e9662aac6055b02d3b62998c974a Mon Sep 17 00:00:00 2001 From: ubaskota <19787410+ubaskota@users.noreply.github.com> Date: Fri, 26 Jun 2026 17:40:13 -0400 Subject: [PATCH 2/2] remove a trailing blank line --- .github/workflows/release.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 3a830b35be36..76e84408c949 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -28,5 +28,4 @@ jobs: uses: pypa/gh-action-pypi-publish@cef221092ed1bacb1cc03d23a2d87d1d172e277b # release/v1.14.0 with: repository-url: https://upload.pypi.org/legacy/ - skip-existing: true - \ No newline at end of file + skip-existing: true \ No newline at end of file