From 7b04778f857510fe850f04853d7fc52976bd1ad4 Mon Sep 17 00:00:00 2001 From: Sean Burton Date: Fri, 12 Jun 2026 13:34:53 +0100 Subject: [PATCH] chore(CI): upload Python package files as artifact --- .github/workflows/pre-release.yml | 8 ++++++++ .github/workflows/release.yml | 8 ++++++++ 2 files changed, 16 insertions(+) diff --git a/.github/workflows/pre-release.yml b/.github/workflows/pre-release.yml index d49d360..0e22849 100644 --- a/.github/workflows/pre-release.yml +++ b/.github/workflows/pre-release.yml @@ -98,3 +98,11 @@ jobs: echo "📦 Building..." uv build echo ✅ "Done." + - name: Upload PyPI distributions as artifact + uses: actions/upload-artifact@v7 + with: + name: quantinuum-sphinx-dist + path: | + sphinx-ui/dist/*.tar.gz + sphinx-ui/dist/*.whl + if-no-files-found: error diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 92c1e66..300c0a4 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -166,6 +166,14 @@ jobs: test -f "dist/quantinuum_sphinx-${PYPI_VERSION}.tar.gz" test -f "dist/quantinuum_sphinx-${PYPI_VERSION}-py3-none-any.whl" echo ✅ "Done. Built PyPI distributions." + - name: Upload PyPI distributions as artifact + uses: actions/upload-artifact@v7 + with: + name: quantinuum-sphinx-dist-${{ needs.build_and_release_node.outputs.version }} + path: | + sphinx-ui/dist/*.tar.gz + sphinx-ui/dist/*.whl + if-no-files-found: error - name: Publish PyPI distributions working-directory: sphinx-ui env: