Skip to content

Commit

Permalink
chore: send wheel from pr to testpypi (#2706)
Browse files Browse the repository at this point in the history
  • Loading branch information
marcelotduarte committed Nov 26, 2024
1 parent 243afec commit 58199f6
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 58199f6

Please sign in to comment.