Skip to content

Upload to TestPyPI

Upload to TestPyPI #5

name: Upload to TestPyPI
on:
workflow_dispatch:
jobs:
download-artifacts:
uses: ./.github/workflows/download-artifacts.yml

Check failure on line 8 in .github/workflows/upload_to_test_pypi.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/upload_to_test_pypi.yml

Invalid workflow file

error parsing called workflow ".github/workflows/upload_to_test_pypi.yml" -> "./.github/workflows/download-artifacts.yml" : failed to fetch workflow: workflow was not found.
upload-to-pypi:
needs: download-artifacts
runs-on: ubuntu-latest
steps:
- uses: actions/setup-python@v5
with:
python-version: '3.x'
- name: Install Twine
run: pip install twine
- name: Upload to PyPI
env:
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.TEST_PYPI_REPO_TOKEN }}
run: |
if ls */*.whl 1> /dev/null 2>&1; then
python -m twine upload --repository-url https://test.pypi.org/legacy/ */*.whl --verbose --disable-progress-bar
else
echo "No wheel files found to upload"
exit 1
fi