From 1af83f69b7798354f33138771df19bfb134c346c Mon Sep 17 00:00:00 2001 From: Adam Page Date: Sun, 18 Jan 2026 22:00:52 +0000 Subject: [PATCH] fix: publish to PyPI without reusable workflow --- .github/workflows/release.yaml | 21 +++++++++++++++++---- 1 file changed, 17 insertions(+), 4 deletions(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 7a00dcd..d11b3f4 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -63,13 +63,26 @@ jobs: publish-pypi: needs: release-please if: needs.release-please.outputs.releases_created == 'true' || needs.release-please.outputs.release_created == 'true' + environment: + name: pypi + url: https://pypi.org/p/sleepkit permissions: contents: read id-token: write - uses: ./.github/workflows/pypi.yaml - with: - ref: ${{ needs.release-please.outputs.tag_name }} - secrets: inherit + runs-on: ubuntu-latest + steps: + - name: Checkout tag + uses: actions/checkout@v4 + with: + ref: ${{ needs.release-please.outputs.tag_name }} + - name: Install uv + uses: astral-sh/setup-uv@v5 + with: + enable-cache: true + - name: Build distributions + run: uv build + - name: Publish to PyPI 📦 + uses: pypa/gh-action-pypi-publish@release/v1 publish-docs: needs: release-please