1.5.0 #8
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 | |
on: | |
release: | |
types: | |
- published | |
jobs: | |
release: | |
name: Build & Deploy to PyPI | |
runs-on: ubuntu-latest | |
steps: | |
- name: Clone repo | |
uses: actions/checkout@v2 | |
# - name: Ensure latest tag is in setup.py if i forgot | |
# run: | | |
# sed -i "s/version=\"[0-9\.]*\"/version=\"$(git describe --tags)\"/g" setup.py | |
# git config user.name github-actions | |
# git config user.email [email protected] | |
# git add setup.py | |
# git commit -m "Ensure setup.py contains the latest tag" | |
# git push | |
- name: Set up Python | |
uses: actions/setup-python@v2 | |
with: | |
python-version: 3.9 | |
- name: Install dependencies | |
run: pip install wheel | |
- name: Build package | |
run: python setup.py sdist bdist_wheel | |
- name: Upload package | |
uses: pypa/gh-action-pypi-publish@release/v1 | |
with: | |
user: __token__ | |
password: ${{ secrets.PYPI_API_TOKEN }} |