Skip to content

push tags too

push tags too #11

name: Bump version workflow
on:
push:
branches:
- master
- ci
# - main
jobs:
bump-version:
name: Bump package version
if: "!contains(github.event.head_commit.message, 'Bump version')"
runs-on: ubuntu-20.04
steps:
- name: actions/checkout
uses: actions/checkout@v2
# with:
# persist-credentials: false
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install build bump2version
- name: Bump version
run: |
git config --global user.email "[email protected]"
git config --global user.name "ODA Release Bot"
bump2version patch --verbose --commit --tag
bump2version release --verbose --commit --tag
git push --tags
- uses: stefanzweifel/git-auto-commit-action@v4
- name: Build package
run: python -m build
- name: Publish package
uses: pypa/gh-action-pypi-publish@27b31702a0e7fc50959f5ad993c78deac1bdfc29
with:
user: __token__
verify_metadata: false
password: ${{ secrets.PYPI_API_TOKEN }}