deploy to PyPI #4
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: Deploy to PyPI | |
on: | |
workflow_dispatch: | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout... | |
uses: actions/checkout@v4 | |
- name: Set up Python... | |
uses: actions/setup-python@v5 | |
- name: Install build dependencies... | |
run: pip install build twine | |
- name: Build... | |
run: | | |
mvn clean verify -U | |
python -m build | |
- name: Upload to PyPI... | |
env: | |
TWINE_USERNAME: "__token__" | |
TWINE_PASSWORD: ${{ secrets.TEST_PYPI_API_TOKEN }} | |
run: twine upload -r testpypi --disable-progress-bar --verbose dist/* |