Skip to content

Commit

Permalink
fix release versioning
Browse files Browse the repository at this point in the history
  • Loading branch information
blairhudson committed Jan 12, 2025
1 parent ffcc74c commit e42d7ed
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,17 +37,15 @@ jobs:
run: |
uv run pytest
- name: Bump version
- name: Bump version and tag
run: |
uv run bump-version
echo "NEW_VERSION=$(uv run get-version)" >> $GITHUB_ENV
git config --global user.name 'github-actions[bot]'
git config --global user.email 'github-actions[bot]@users.noreply.github.com'
git add pyproject.toml uv.lock
git commit -m "Bump version to $(uv run get-version)"
- name: Create new tag
run: |
git tag v$(uv run get-version)
git commit -m "Bump version to ${{ env.NEW_VERSION }}"
git tag v${{ env.NEW_VERSION }}
- name: Push changes and tags
env:
Expand Down

0 comments on commit e42d7ed

Please sign in to comment.