Skip to content

Commit 6b7f964

Browse files
committed
FIX: properly push tag
1 parent 388454a commit 6b7f964

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

.github/workflows/release_prepare.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)