Skip to content

Rename bump_version_setupcfg.py to bump_version.py #59

Rename bump_version_setupcfg.py to bump_version.py

Rename bump_version_setupcfg.py to bump_version.py #59

Workflow file for this run

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 --user
- name: Publish distribution 📦 to PyPI
uses: pypa/gh-action-pypi-publish@master
with:
password: ${{ secrets.PYPI_API_TOKEN }}