Skip to content

Bump version: 1.3.110-dev0 → 1.3.110 #178

Bump version: 1.3.110-dev0 → 1.3.110

Bump version: 1.3.110-dev0 → 1.3.110 #178

name: Bump version workflow
on:
push:
branches:
- master
- release-action
# - main
jobs:
bump-version:
name: Bump package version
if: ${{ !contains(github.event.head_commit.message, 'Bump version') }}
runs-on: ubuntu-latest
steps:
- name: actions/checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
token: ${{ secrets.ODA_BOT_SECRET }}
# 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 "vladimir.savchenko+oda-release-bot@gmail.com"
git config --global user.name "ODA Release Bot"
bump2version patch --verbose --commit --tag
bump2version release --verbose --commit --tag
- name: Push changes
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
branch: ${{ github.ref }}
- name: Build package
run: python -m build
- name: Publish package
uses: pypa/gh-action-pypi-publish@v1.12.4
with:
user: __token__
verify-metadata: false
password: ${{ secrets.PYPI_API_TOKEN }}