File tree Expand file tree Collapse file tree 3 files changed +14
-16
lines changed Expand file tree Collapse file tree 3 files changed +14
-16
lines changed Original file line number Diff line number Diff line change 3
3
<servers >
4
4
<server >
5
5
<id >ossrh</id >
6
- <username >${env.OSSRH_USERNAME }</username >
7
- <password >${env.OSSRH_PASSWORD }</password >
6
+ <username >${env.OSSH_USERNAME }</username >
7
+ <password >${env.OSSH_PASSWORD }</password >
8
8
</server >
9
9
<server >
10
10
<id >gpg.passphrase</id >
Original file line number Diff line number Diff line change 1
- name-template : ' Version $NEXT_PATCH_VERSION🌈 '
1
+ name-template : ' Version $NEXT_PATCH_VERSION'
2
2
tag-template : ' v$NEXT_PATCH_VERSION'
3
3
categories :
4
- - title : ' 🚀 Features'
4
+ - title : ' Features'
5
5
labels :
6
6
- ' feature'
7
7
- ' enhancement'
@@ -10,9 +10,9 @@ categories:
10
10
- ' fix'
11
11
- ' bugfix'
12
12
- ' bug'
13
- - title : ' 🧰 Maintenance'
13
+ - title : ' Maintenance'
14
14
label : ' chore'
15
- change-template : ' - $TITLE @$AUTHOR (#$NUMBER)'
15
+ change-template : ' - $TITLE (#$NUMBER)'
16
16
exclude-labels :
17
17
- ' skip-changelog'
18
18
template : |
Original file line number Diff line number Diff line change 1
1
name : Release
2
2
3
3
on :
4
- push :
5
- tags :
6
- - ' *'
4
+ release :
5
+ types : [published]
7
6
8
7
jobs :
9
8
build :
19
18
realversion="${realversion//v/}"
20
19
echo "::set-output name=VERSION::$realversion"
21
20
22
- - name : set version from tag
23
- uses : actions/setup-java@v2
24
- run : mvn versions:set -DnewVersion=${{ steps.get_version.outputs.VERSION }}
25
-
26
21
- name : Set up publishing to maven central
27
22
uses : actions/setup-java@v2
28
23
with :
@@ -32,17 +27,20 @@ jobs:
32
27
server-username : MAVEN_USERNAME
33
28
server-password : MAVEN_PASSWORD
34
29
30
+ - name : mvn versions
31
+ run : mvn versions:set -DnewVersion=${{ steps.get_version.outputs.VERSION }}
32
+
35
33
- name : Install gpg key
36
34
run : |
37
- cat <(echo -e "${{ secrets.OSSRH_GPG_SECRET_KEY }}") | gpg --batch --import
35
+ cat <(echo -e "${{ secrets.OSSH_GPG_SECRET_KEY }}") | gpg --batch --import
38
36
gpg --list-secret-keys --keyid-format LONG
39
37
40
38
- name : Publish
41
39
run : |
42
40
mvn --no-transfer-progress \
43
41
--batch-mode \
44
- -Dgpg.passphrase=" ${{ secrets.OSSRH_GPG_SECRET_KEY_PASSWORD }}" \
45
- -s - DskipTests deploy -P release
42
+ -Dgpg.passphrase=' ${{ secrets.OSSH_GPG_SECRET_KEY_PASSWORD }}' \
43
+ -DskipTests deploy -P release
46
44
env :
47
45
MAVEN_USERNAME : ${{secrets.OSSH_USERNAME}}
48
46
MAVEN_PASSWORD : ${{secrets.OSSH_TOKEN}}
You can’t perform that action at this time.
0 commit comments