v3.8.0 Release #29
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: Release Distributables | |
on: | |
release: | |
types: | |
- published | |
jobs: | |
build-n-upload: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-python@v2 | |
with: | |
python-version: "3.10" | |
- run: pip install wheel | |
- name: Build new distributables | |
run: python setup.py sdist bdist_wheel | |
- name: Upload distributables to PyPI | |
uses: pypa/gh-action-pypi-publish@release/v1 | |
with: | |
user: __token__ | |
password: ${{ secrets.PYPI_API_TOKEN }} | |
- name: Post release cleaning | |
run: | | |
python setup.py clean --all | |
rm dist/* |