File tree Expand file tree Collapse file tree 1 file changed +27
-2
lines changed Expand file tree Collapse file tree 1 file changed +27
-2
lines changed Original file line number Diff line number Diff line change 45
45
gpg --list-secret-keys --keyid-format LONG
46
46
gpg --list-keys --keyid-format LONG
47
47
48
+ - name : Configure Maven
49
+ run : |
50
+ mkdir -p ~/.m2
51
+ cat > ~/.m2/settings.xml << EOF
52
+ <settings>
53
+ <servers>
54
+ <server>
55
+ <id>ossrh</id>
56
+ <username>\${env.OSSRH_USERNAME}</username>
57
+ <password>\${env.OSSRH_PASSWORD}</password>
58
+ </server>
59
+ </servers>
60
+ <profiles>
61
+ <profile>
62
+ <id>ossrh</id>
63
+ <activation>
64
+ <activeByDefault>true</activeByDefault>
65
+ </activation>
66
+ <properties>
67
+ <gpg.executable>gpg</gpg.executable>
68
+ <gpg.passphrase>\${env.GPG_PASSPHRASE}</gpg.passphrase>
69
+ </properties>
70
+ </profile>
71
+ </profiles>
72
+ </settings>
73
+ EOF
74
+
48
75
- name : Build and Publish
49
76
env :
50
77
OSSRH_USERNAME : ${{ secrets.OSSRH_USERNAME_TOKEN }}
55
82
mvn clean deploy -P release \
56
83
-Dmaven.javadoc.skip=false \
57
84
-Dmaven.deploy.skip=false \
58
- -Dgpg.passphrase=${{ secrets.GPG_PASSPHRASE }} \
59
- -Dgpg.executable=gpg \
60
85
-Dgpg.keyname=${{ secrets.GPG_KEYNAME }} \
61
86
-Dgpg.useagent=true \
62
87
-Dmaven.test.failure.ignore=false \
You can’t perform that action at this time.
0 commit comments