Skip to content

Commit

Permalink
simultaneous pypi + release publishing
Browse files Browse the repository at this point in the history
  • Loading branch information
mikel.brostrom committed May 25, 2023
1 parent fd251cd commit 7f84a21
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,16 @@ jobs:
IFS='.' read -r -a version_parts <<< "$current_version"
((version_parts[2]++))
new_version="${version_parts[0]}.${version_parts[1]}.${version_parts[2]}"
echo $new_version
echo "new_version=$new_version" >> $GITHUB_OUTPUT
if: ${{ success() }}

- name: Update package version
run: |
new_version="${{ steps.increment_version.outputs.new_version }}"
sed -i "s/__version__ = .*/__version__ = '$new_version'/" boxmot/__init__.py
if: ${{ success() }}

- name: Commit and push updated version
run: |
git config --local user.name mikel-brostrom
Expand Down

0 comments on commit 7f84a21

Please sign in to comment.