File tree Expand file tree Collapse file tree 2 files changed +12
-10
lines changed
Expand file tree Collapse file tree 2 files changed +12
-10
lines changed Original file line number Diff line number Diff line change @@ -43,19 +43,25 @@ jobs:
4343 java-package : jdk
4444 distribution : temurin
4545 cache : ' maven'
46- server-id : ossrh
47- server-username : CI_DEPLOY_USERNAME
48- server-password : CI_DEPLOY_PASSWORD
49- gpg-private-key : ${{ secrets.GPG_PRIVATE_KEY }}
50- gpg-passphrase : MAVEN_GPG_PASSPHRASE
5146
5247 - name : Configure git
53- run : |
48+ run : |
49+ cat <(echo -e "${{ secrets.GPG_PRIVATE_KEY }}") | gpg --batch --yes --always-trust --import
5450 git config --global committer.email "infra@finos.org"
5551 git config --global committer.name "FINOS Admin"
5652 git config --global author.email "${GITHUB_ACTOR}@users.noreply.github.com"
5753 git config --global author.name "${GITHUB_ACTOR}"
5854
55+ - name : Setup SSH Access for Commit
56+ uses : kielabokkie/ssh-key-and-known-hosts-action@v1.3.0
57+ with :
58+ ssh-private-key : ${{ secrets.COMMIT_SSH_PRIVATE_KEY }}
59+ ssh-host : github.com
60+
61+ - name : Install GPG secret key
62+ run : |
63+ cat <(echo -e "${{ secrets.GPG_PRIVATE_KEY }}") | gpg --batch --yes --always-trust --import
64+
5965 - name : Build with Maven
6066 run : mvn --no-transfer-progress release:prepare release:perform -P sign-it -Dsign=true -s .settings/settings.xml -DreleaseVersion=${{ github.event.inputs.releaseVersion }} -DdevelopmentVersion=${{ github.event.inputs.developmentVersion }}
6167 env :
Original file line number Diff line number Diff line change 55 <username >${env.CI_DEPLOY_USERNAME}</username >
66 <password >${env.CI_DEPLOY_PASSWORD}</password >
77 </server >
8- <server >
9- <id >gpg.passphrase</id >
10- <passphrase >${env.MAVEN_GPG_PASSPHRASE}</passphrase >
11- </server >
128 </servers >
139</settings >
You can’t perform that action at this time.
0 commit comments