Skip to content

Workflow file for this run

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/*