From 58199f6cdd656a9ff6a97f1d8ca01de1a8e2e694 Mon Sep 17 00:00:00 2001 From: Marcelo Duarte Date: Tue, 26 Nov 2024 16:17:47 -0300 Subject: [PATCH] chore: send wheel from pr to testpypi (#2706) --- .github/workflows/ci.yml | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 391be2a44..e39ff60ae 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -15,6 +15,37 @@ jobs: name: Build wheels uses: ./.github/workflows/build-wheel.yml + testpypi: + name: Publish package to TestPyPI + if: github.event_name == 'pull_request' + needs: + - build_wheel + runs-on: ubuntu-latest + environment: + name: ${{ github.event_name }} + url: https://test.pypi.org/p/cx-Freeze + permissions: + id-token: write + steps: + + - name: Download all artifacts + uses: actions/download-artifact@v4 + with: + path: artifacts + + - name: Join files to upload + run: | + mkdir -p wheelhouse + mv artifacts/cx-freeze-whl-*/* wheelhouse/ + + - name: Publish package to TestPyPI + uses: pypa/gh-action-pypi-publish@release/v1 + with: + packages-dir: wheelhouse/ + repository-url: https://test.pypi.org/legacy/ + skip-existing: true + verbose: true + tests: needs: - build_wheel