[ACS-9823]: [publish] maven central publishing (#713)

* [ACS-9823]: providing logic for maven central config via ci file for release process

* [ACS-9823]: providing logic for maven central config via ci file for release process
This commit is contained in:
Vivek
2025-07-24 18:11:27 +05:30
committed by GitHub
parent 32470ef417
commit f861833fa3

View File

@@ -180,6 +180,20 @@ jobs:
- uses: Alfresco/alfresco-build-tools/.github/actions/setup-java-build@v8.16.0
- name: "Build"
run: mvn install -DskipTests=true -Dmaven.javadoc.skip=true -B -V
- name: Set up Maven Central credentials
run: |
echo "<settings xmlns=\"http://maven.apache.org/SETTINGS/1.0.0\"
xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\"
xsi:schemaLocation=\"http://maven.apache.org/SETTINGS/1.0.0
https://maven.apache.org/xsd/settings-1.0.0.xsd\">
<servers>
<server>
<id>central</id>
<username>${{ secrets.MAVEN_CENTRAL_USERNAME }}</username>
<password>${{ secrets.MAVEN_CENTRAL_PASSWORD }}</password>
</server>
</servers>
</settings>" > ~/.m2/settings.xml
- name: Import GPG key
env:
GPG_TTY: $(tty)