Skip to content

Commit 8902f2d

Browse files
deblocktclaude
andcommitted
fix: create tag only after successful Maven Central deploy
- Use dry_run: true for version auto-detection - Move tag creation after JReleaser deploy step - Tag is only pushed if deploy succeeds 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent 4663443 commit 8902f2d

1 file changed

Lines changed: 6 additions & 7 deletions

File tree

.github/workflows/release.yml

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -37,13 +37,7 @@ jobs:
3737
default_bump: patch
3838
release_branches: master
3939
tag_prefix: ""
40-
41-
- name: Manual version
42-
id: manual
43-
if: ${{ inputs.version }}
44-
run: |
45-
git tag "${{ inputs.version }}"
46-
git push origin "${{ inputs.version }}"
40+
dry_run: true
4741

4842
- name: Set release tag
4943
id: release
@@ -66,6 +60,11 @@ jobs:
6660
JRELEASER_GPG_SECRET_KEY: ${{ secrets.GPG_PRIVATE_KEY }}
6761
JRELEASER_GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
6862

63+
- name: Create and push tag
64+
run: |
65+
git tag "${{ steps.release.outputs.tag }}"
66+
git push origin "${{ steps.release.outputs.tag }}"
67+
6968
- name: Create GitHub Release
7069
env:
7170
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)