mirror of
https://github.com/Alfresco/alfresco-sdk.git
synced 2025-08-14 17:59:13 +00:00
[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:
14
.github/workflows/ci.yml
vendored
14
.github/workflows/ci.yml
vendored
@@ -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)
|
||||
|
Reference in New Issue
Block a user