Skip to content

Commit 66f4858

Browse files
committed
#initial-commit
1 parent 57c5639 commit 66f4858

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

.github/workflows/maven-publish.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,23 @@ jobs:
2323
echo RELOADAGENT | gpg-connect-agent
2424
echo -e "pinentry-mode loopback\n" >> ~/.gnupg/gpg.conf
2525
26+
- name: Set up Maven Central settings
27+
run: |
28+
mkdir -p ~/.m2
29+
cat <<EOF > ~/.m2/settings.xml
30+
<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0"
31+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
32+
xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 https://maven.apache.org/xsd/settings-1.0.0.xsd">
33+
<servers>
34+
<server>
35+
<id>central</id>
36+
<username>${{ secrets.MAVEN_CENTRAL_USERNAME }}</username>
37+
<password>${{ secrets.MAVEN_CENTRAL_TOKEN }}</password>
38+
</server>
39+
</servers>
40+
</settings>
41+
EOF
42+
2643
- name: Build with Maven
2744
run: |
2845
mvn clean deploy -Dgpg.passphrase=$GPG_PASSPHRASE \

0 commit comments

Comments
 (0)