Skip to content

Commit a4f4eb1

Browse files
committed
CI: Add trusted publishing for TestPyPI
1 parent f8bdf51 commit a4f4eb1

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

.github/workflows/build_wheel.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,3 +89,32 @@ jobs:
8989
with state.State(quiet=False) as p_state:
9090
pass
9191
EOF
92+
93+
deploy-testpypi:
94+
name: Deploy to TestPyPI
95+
needs: ['build_wheels', 'install_wheels']
96+
environment: 'publish-testpypi'
97+
runs-on: ubuntu-latest
98+
permissions:
99+
id-token: write
100+
101+
steps:
102+
- uses: actions/download-artifact@v4
103+
with:
104+
name: cibw-wheels-ubuntu-latest
105+
path: dist
106+
107+
- uses: actions/download-artifact@v4
108+
with:
109+
name: cibw-wheels-macos-latest
110+
path: dist
111+
112+
- uses: actions/download-artifact@v4
113+
with:
114+
name: cibw-wheels-windows-latest
115+
path: dist
116+
117+
- name: Publish package distributions to PyPI
118+
uses: pypa/gh-action-pypi-publish@release/v1
119+
with:
120+
repository-url: https://test.pypi.org/legacy/

0 commit comments

Comments
 (0)