6.6.0 #25
Workflow file for this run
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: bandersnatch_pypi_upload | |
on: | |
release: | |
types: created | |
jobs: | |
build: | |
name: bandersnatch PyPI Upload | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: "*" | |
- name: Install latest build, twine | |
run: | | |
python -m pip install --upgrade build twine | |
- name: Build sdist & wheel | |
run: | | |
python -m build | |
- name: Run a twine check | |
run: | | |
twine check --strict dist/* | |
- name: Upload to PyPI via Twine | |
env: | |
TWINE_PASSWORD: ${{ secrets.PYPI_TOKEN }} | |
run: | | |
twine upload --verbose -u '__token__' dist/* |