Release source distribution (sdist) #3
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: Release source distribution (sdist) | |
on: workflow_dispatch | |
jobs: | |
build: | |
runs-on: ['ubuntu-latest'] | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup Python # Set Python version | |
uses: actions/setup-python@v4 | |
with: | |
python-version: 3.9 | |
- name: Checkout submodules | |
run: git submodule update --init --recursive | |
- name: Build package & upload | |
run: | | |
pip install wheel twine | |
python setup.py sdist | |
- name: Publish package | |
run: | |
twine upload -u __token__ -p ${{ secrets.PYPI_UPLOAD_TOKEN }} dist/* |