Skip to content

Update myaction.yml #58

Update myaction.yml

Update myaction.yml #58

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 "[email protected]"
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 }}