From d1e43467ae99ae1fd05986a9cbb57e6a104a7b18 Mon Sep 17 00:00:00 2001 From: Bryce Boe Date: Mon, 15 Jun 2026 12:43:57 -0700 Subject: [PATCH 1/2] Use reusable pypi-publish workflow Co-Authored-By: Claude Opus 4.8 (1M context) --- .github/workflows/publish.yml | 22 ++++++++-------------- 1 file changed, 8 insertions(+), 14 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 9f014f0..3eaf344 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -4,21 +4,15 @@ on: release: types: [published] -permissions: {} +permissions: + contents: read + id-token: write jobs: publish: - name: Build and publish - runs-on: ubuntu-latest - environment: - name: pypi - url: https://pypi.org/project/ext_http_server/ permissions: - id-token: write # trusted publishing to PyPI (no API token) - steps: - - uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3 - with: - fetch-depth: 0 # full history + tags so hatch-vcs can derive the version - - uses: astral-sh/setup-uv@fac544c07dec837d0ccb6301d7b5580bf5edae39 # v8.2.0 - - run: uv build - - run: uv publish --trusted-publishing always + contents: read + id-token: write + uses: bboe/.github/.github/workflows/pypi-publish.yml@main + with: + url: https://pypi.org/project/ext_http_server/ \ No newline at end of file From ccfb74cffbb55c6d336042ce52782302c8a3f04f Mon Sep 17 00:00:00 2001 From: Bryce Boe Date: Mon, 15 Jun 2026 13:03:04 -0700 Subject: [PATCH 2/2] Fix trailing newline in publish workflow --- .github/workflows/publish.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 3eaf344..bacb5be 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -15,4 +15,4 @@ jobs: id-token: write uses: bboe/.github/.github/workflows/pypi-publish.yml@main with: - url: https://pypi.org/project/ext_http_server/ \ No newline at end of file + url: https://pypi.org/project/ext_http_server/