Skip to content

Commit 22b9b75

Browse files
committed
add tagging as last step
1 parent baabf16 commit 22b9b75

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

.github/workflows/publish.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,12 @@ jobs:
2323
- uses: aboutbits/github-actions-java/setup-with-maven@v4
2424
with:
2525
java-version: 21
26+
- name: Publish package
27+
env:
28+
GITHUB_USER_NAME: ${{ github.actor }}
29+
GITHUB_ACCESS_TOKEN: ${{ secrets.GITHUB_TOKEN }}
30+
run: mvn -s $GITHUB_WORKSPACE/.github/workflows/maven-settings.xml --batch-mode deploy
31+
shell: bash
2632
- uses: aboutbits/github-actions-java/set-version-with-maven@v4
2733
with:
2834
version: "${{ github.event.inputs.version }}"
@@ -32,12 +38,6 @@ jobs:
3238
- uses: aboutbits/github-actions-base/git-create-or-update-tag@v2
3339
with:
3440
tag-name: 'v${{ github.event.inputs.version }}'
35-
- name: Publish package
36-
env:
37-
GITHUB_USER_NAME: ${{ github.actor }}
38-
GITHUB_ACCESS_TOKEN: ${{ secrets.GITHUB_TOKEN }}
39-
run: mvn -s $GITHUB_WORKSPACE/.github/workflows/maven-settings.xml --batch-mode deploy
40-
shell: bash
4141
- uses: aboutbits/github-actions-base/github-create-release@v2
4242
with:
4343
tag-name: 'v${{ github.event.inputs.version }}'

0 commit comments

Comments
 (0)