Skip to content

Commit 1399929

Browse files
committed
new test release
1 parent 277cc0a commit 1399929

1 file changed

Lines changed: 20 additions & 3 deletions

File tree

.github/workflows/maven-release.yaml

Lines changed: 20 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,26 @@ jobs:
3434
java-version: ${{ env.JAVA_VERSION }}
3535
distribution: 'temurin'
3636
cache: 'maven'
37-
server-id: central
38-
server-username: ${{ secrets.SONATYPE_USERNAME }}
39-
server-password: ${{ secrets.SONATYPE_PASSWORD }}
37+
38+
- name: Configure Maven Plain-Text Credentials
39+
run: |
40+
mkdir -p ~/.m2
41+
cat << EOF > ~/.m2/settings.xml
42+
<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0"
43+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
44+
xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 http://maven.apache.org/xsd/settings-1.0.0.xsd">
45+
<servers>
46+
<server>
47+
<id>central</id>
48+
<username>$SONATYPE_USERNAME</username>
49+
<password>$SONATYPE_PASSWORD</password>
50+
</server>
51+
</servers>
52+
</settings>
53+
EOF
54+
env:
55+
SONATYPE_USERNAME: ${{ secrets.SONATYPE_USERNAME }}
56+
SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }}
4057

4158
- name: Import GPG Private Key
4259
run: |

0 commit comments

Comments
 (0)