Skip to content

Commit 56fba5c

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

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

.github/workflows/maven-publish.yml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,17 +27,19 @@ jobs:
2727
run: echo "${{ secrets.GPGPASSPHRASE }}" > private-file.key
2828
- name: Import private-key
2929
run: gpg --import private-file.key
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}}" }]'
30+
- name: SettingXML
31+
run: |
32+
cat << EOF > settings.xml
33+
${{ secrets.SETTINGSXML }}
34+
EOF
35+
ls
3436
- uses: actions/checkout@v4
3537
- uses: actions/setup-java@v4
3638
with:
3739
java-version: '21'
3840
distribution: 'temurin'
3941
- name: Publish package
40-
run: mvn --batch-mode deploy
42+
run: mvn --batch-mode deploy -s settings.xml
4143
env:
4244
GITHUB_TOKEN: ${{ secrets.GITHUBTOKEN }}
4345
# - name: Maven Central Publish

0 commit comments

Comments
 (0)