Upload to TestPyPI #11
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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: all-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 --skip-existing wheels/* --verbose --disable-progress-bar |