File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -41,14 +41,15 @@ jobs:
4141 git config user.name "github-actions[bot]"
4242 git config user.email "github-actions[bot]@users.noreply.github.com"
4343 git add pyproject.toml || true
44- git commit -m "chore: bump version to ${{ steps.bump.outputs.new_version }}"
45- git tag "v${{ steps.bump.outputs.new_version }}"
46- git push --follow-tags
44+ git commit -m "chore: bump version to ${{ steps.bump.outputs.new_version }}" || true
45+ git push origin main
46+ git tag -a "v${{ steps.bump.outputs.new_version }}" -m "release v${{ steps.bump.outputs.new_version }}"
47+ git push origin "v${{ steps.bump.outputs.new_version }}"
4748
4849 - name : build
4950 run : python -m build
5051
51- # Optional: publish to TestPyPI using OIDC
52+ # Optionally publish to TestPyPI using OIDC
5253 - name : publish to TestPyPI (trusted)
5354 if : inputs.publish_to_testpypi == true
5455 uses : pypa/gh-action-pypi-publish@release/v1
You can’t perform that action at this time.
0 commit comments