Skip to content

Upload to TestPyPI

Upload to TestPyPI #9

name: Upload to TestPyPI
on:
workflow_dispatch:
jobs:
download-artifacts:
uses: ./.github/workflows/download_artifacts.yml
upload-to-pypi:
needs: download-artifacts
runs-on: ubuntu-latest
steps:
- uses: actions/setup-python@v5
with:
python-version: '3.x'
- name: Download wheel artifacts
uses: actions/download-artifact@v2
with:
name: wheels
path: ./wheels
- name: Install Twine
run: pip install twine
- name: Upload to PyPI
env:
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.TEST_PYPI_TOKEN }}
run: |
REPO_URL="https://test.pypi.org/legacy/"
twine upload --repository-url $REPO_URL ${{ needs.download-artifacts.outputs.artifact-path }}/*.whl