Skip to content

Commit

Permalink
CICD: Add TestPyPi step
Browse files Browse the repository at this point in the history
  • Loading branch information
RUrlus committed Apr 25, 2024
1 parent ae05017 commit ffd72b1
Showing 1 changed file with 21 additions and 1 deletion.
22 changes: 21 additions & 1 deletion .github/workflows/wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -125,9 +125,29 @@ jobs:
name: artifact-macos-arm
path: wheelhouse/*.whl

publish-to-testpypi:
name: Publish release on TestPyPi
needs: [build_sdist, build_wheels, build_arm_wheels]
runs-on: ubuntu-latest
environment: testrelease
permissions:
id-token: write # IMPORTANT: mandatory for trusted publishing

steps:
- uses: actions/setup-python@v5
- uses: actions/download-artifact@v4
with:
pattern: artifact-*
merge-multiple: true
path: dist

- uses: pypa/gh-action-pypi-publish@v1.8.14
with:
repository-url: https://test.pypi.org/legacy/

pypi-publish:
name: Publish release on PyPi
needs: [build_sdist, build_wheels, build_arm_wheels]
needs: [build_sdist, build_wheels, build_arm_wheels, publish-to-testpypi]
runs-on: ubuntu-latest
if: github.event_name == 'release' && github.event.action == 'published'
environment: release
Expand Down

0 comments on commit ffd72b1

Please sign in to comment.