Skip to content

Commit

Permalink
Create upload_to_test_pypi.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelMoroz authored Sep 3, 2024
1 parent 5faa87b commit 1aae256
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/upload_to_test_pypi.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Upload to TestPyPI

on:
workflow_dispatch: # This allows manual triggering
release:
types: [created] # You can adjust this to your needs

jobs:
upload-to-pypi:
runs-on: ubuntu-latest
steps:
- name: Download Windows wheels
uses: actions/download-artifact@v2
with:
name: windows-wheels
path: ./dist/windows

- name: Download Manylinux wheels
uses: actions/download-artifact@v2
with:
name: manylinux-wheels
path: ./dist/manylinux

- name: Install Twine
run: pip install twine

- name: Upload to PyPI
env:
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.TEST_PYPI_REPO_TOKEN }}
run: |
python -m twine upload --repository-url https://test.pypi.org/legacy/ ./dist/windows/*.whl ./dist/manylinux/*.whl --verbose --disable-progress-bar

0 comments on commit 1aae256

Please sign in to comment.