Skip to content

Commit 6ad7cbd

Browse files
committed
fix: Settings.xml
1 parent f2d86fa commit 6ad7cbd

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

.github/workflows/maven-publish.yml

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -27,13 +27,10 @@ jobs:
2727
run: echo "${{ secrets.GPGPASSPHRASE }}" > private-file.key
2828
- name: Import private-key
2929
run: gpg --import private-file.key
30-
- name: SettingXML
31-
run: |
32-
mkdir -p ~/.m2
33-
cat /dev/null > ~/.m2/settings.xml
34-
cat > ~/.m2/settings.xml <<EOF
35-
${{ secrets.SETTINGSXML }}
36-
EOF
30+
- name: maven-settings-xml-action
31+
uses: whelk-io/maven-settings-xml-action@v22
32+
with:
33+
servers: '[{ "id": "Mryan2005", "username": "${{secrets.mavenUsername}}", "password": "${{secrets.mavenPassword}}" }]'
3734
- uses: actions/checkout@v4
3835
- uses: actions/setup-java@v4
3936
with:

0 commit comments

Comments
 (0)