Skip to content

Commit

Permalink
Update build_wheels.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
borisbolliet authored Sep 28, 2024
1 parent 1c4114d commit 1b09eb4
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/build_wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,37 @@ permissions: # Ensure the workflow has permission to push changes
contents: write # Allow write access for pushing to the repository

jobs:
bump_version:
runs-on: ubuntu-latest
steps:
- name: Checkout the code
uses: actions/checkout@v4
with:
persist-credentials: true

- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.x"

- name: Install bump2version
run: python -m pip install bump2version

- name: Bump version (patch)
run: |
bump2version patch --current-version $(grep -Eo 'version="[^"]*' setup.py | cut -d'"' -f2) setup.py
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Commit and push version bump
run: |
git config --global user.name "GitHub Actions"
git config --global user.email "[email protected]"
git commit -am "Bump version"
git push
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

build_wheels:
runs-on: ${{ matrix.os }}
strategy:
Expand Down

0 comments on commit 1b09eb4

Please sign in to comment.