Update pyproject.toml #70
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: Automated Version Bump | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
bump: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Set up Python 3.9 🐍 | |
uses: actions/setup-python@v2 | |
with: | |
python-version: 3.9 | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- name: Install required packages | |
run: | | |
python -m pip install --upgrade pip | |
pip install toml | |
- name: Automated Version Bump | |
run: python .github/bump_version.py | |
- name: Commit and push version bump | |
run: | | |
git config --local user.email "action@github.com" | |
git config --local user.name "GitHub Action" | |
git add setup.cfg pyproject.toml | |
git commit -m "Automated Version Bump" -a | |
git push | |
- name: Install pypa/build | |
run: | | |
python -m pip install build | |
- name: Build the package | |
run: | | |
python -m build | |
- name: pypi-publish | |
uses: pypa/gh-action-pypi-publish@release/v1 | |
with: | |
password: ${{ secrets.PYPI_API_TOKEN }} | |