File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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 : |
You can’t perform that action at this time.
0 commit comments