File tree 3 files changed +4
-3
lines changed
3 files changed +4
-3
lines changed Original file line number Diff line number Diff line change 60
60
git push origin websiterelease
61
61
62
62
- name : Delete release tag
63
- if : " always()"
63
+ if : " always() && github.ref != 'refs/heads/main' "
64
64
run : |
65
65
git tag --delete "${GITHUB_REF_NAME}" || true
66
66
git push --delete origin "${GITHUB_REF_NAME}" || true
Original file line number Diff line number Diff line change @@ -20,10 +20,10 @@ jobs:
20
20
uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
21
21
with :
22
22
token : ${{ secrets.PERSONAL_GITHUB_TOKEN }}
23
- fetch-tags : true
24
23
25
24
- name : Setup git
26
25
run : |
26
+ git fetch --tags
27
27
git config --global user.name "Stephen Colebourne (CI)"
28
28
git config --global user.email "[email protected] "
29
29
67
67
git push origin main
68
68
69
69
- name : Delete website tag
70
+ if : github.ref != 'refs/heads/main'
70
71
run : |
71
72
git tag --delete "${GITHUB_REF_NAME}" || true
72
73
git push --delete origin "${GITHUB_REF_NAME}" || true
Original file line number Diff line number Diff line change 941
941
<nexusUrl >https://oss.sonatype.org/</nexusUrl >
942
942
<serverId >sonatype-joda-staging</serverId >
943
943
<keepStagingRepositoryOnCloseRuleFailure >true</keepStagingRepositoryOnCloseRuleFailure >
944
- <autoReleaseAfterClose >false </autoReleaseAfterClose >
944
+ <autoReleaseAfterClose >true </autoReleaseAfterClose >
945
945
</configuration >
946
946
</plugin >
947
947
<!-- Create dist files -->
You can’t perform that action at this time.
0 commit comments