Skip to content

Commit b2d8aa2

Browse files
committed
ci: add github actions to publish every PR on test pypi
1 parent ab72a66 commit b2d8aa2

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

.github/workflows/build-CI.yml

+20
Original file line numberDiff line numberDiff line change
@@ -187,3 +187,23 @@ jobs:
187187
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
188188
run: |
189189
pip install --upgrade twine
190+
twine upload --skip-existing *
191+
192+
preview_release:
193+
name: Preview Release
194+
runs-on: ubuntu-latest
195+
needs: [macos, windows, linux, linux-cross]
196+
steps:
197+
- uses: actions/download-artifact@v3
198+
with:
199+
name: wheels
200+
- uses: actions/setup-python@v4
201+
with:
202+
python-version: 3.x
203+
- name: Publish to PyPi
204+
env:
205+
TWINE_USERNAME: __token__
206+
TWINE_PASSWORD: ${{ secrets.TEST_PYPI_PASSWORD }}
207+
run: |
208+
pip install --upgrade twine
209+
twine upload -r testpypi --skip-existing *

0 commit comments

Comments
 (0)