1616 description : ' Id of the repository'
1717 required : true
1818 type : string
19-
20- server-username :
21- description : ' Username of the repository '
19+
20+ profile :
21+ description : ' Profile to pick from pom.xml '
2222 required : true
2323 type : string
24+ secrets :
25+ server-username :
26+ # description: 'Username of the repository'
27+ required : true
2428
2529 server-password :
26- description : ' Password of the repository'
30+ # description: 'Password of the repository'
2731 required : true
28- type : string
2932
3033 gpg-key :
31- description : ' GPG key to access the repository'
34+ # description: 'GPG key to access the repository'
3235 required : true
33- type : string
3436
3537 gpg-passphrase :
36- description : ' GPG passphrase to access the repository'
38+ # description: 'GPG passphrase to access the repository'
3739 required : true
38- type : string
39-
40- profile :
41- description : ' Profile to pick from pom.xml'
42- required : true
43- type : string
4440
4541jobs :
4642 publish :
5955 server-id : ${{ inputs.server-id }}
6056 server-username : SERVER_USERNAME
6157 server-password : SERVER_PASSWORD
62- gpg-private-key : ${{ inputs .gpg-key }} # Value of the GPG private key to import
58+ gpg-private-key : ${{ secrets .gpg-key }} # Value of the GPG private key to import
6359 gpg-passphrase : GPG_PASSPHRASE # env variable for GPG private key passphrase
6460
6561 - name : Get Previous tag
@@ -77,17 +73,17 @@ jobs:
7773 ./ci-scripts/bump_version.sh "${{ steps.previoustag.outputs.tag }}"
7874 fi
7975
80- - name : Commit changes
81- run : |
82- git config user.name ${{ github.actor }}
83- git config user.email ${{ github.actor }}@users.noreply.github.com
84- git add pom.xml
85- if ${{ inputs.is-internal }}; then
86- git commit -m "[AUTOMATED] Private Release ${{ steps.previoustag.outputs.tag }}-dev-$(git rev-parse --short $GITHUB_SHA)"
87- git push origin ${{ github.ref_name }} -f
88- else
89- git commit -m "[AUTOMATED] Public Release - ${{ steps.previoustag.outputs.tag }}"
90- git push origin
76+ # - name: Commit changes
77+ # run: |
78+ # git config user.name ${{ github.actor }}
79+ # git config user.email ${{ github.actor }}@users.noreply.github.com
80+ # git add pom.xml
81+ # if ${{ inputs.is-internal }}; then
82+ # git commit -m "[AUTOMATED] Private Release ${{ steps.previoustag.outputs.tag }}-dev-$(git rev-parse --short $GITHUB_SHA)"
83+ # git push origin ${{ github.ref_name }} -f
84+ # else
85+ # git commit -m "[AUTOMATED] Public Release - ${{ steps.previoustag.outputs.tag }}"
86+ # git push origin
9187
9288 - name : Create env
9389 if : ${{ inputs.is-internal }}
@@ -104,10 +100,9 @@ jobs:
104100 name : " credentials.json"
105101 json : ${{ secrets.TEST_CREDENTIALS_FILE_STRING }}
106102
107- - name : Publish package
108- run : mvn clean deploy -P ${{ inputs.profile }}
109- env :
110- SERVER_USERNAME : ${{ inputs.server-username }}
111- SERVER_PASSWORD : ${{ inputs.server-password }}
112- GPG_PASSPHRASE : ${{ inputs.gpg-passphrase }}
113-
103+ # - name: Publish package
104+ # run: mvn clean deploy -P ${{ inputs.profile }}
105+ # env:
106+ # SERVER_USERNAME: ${{ secrets.server-username }}
107+ # SERVER_PASSWORD: ${{ secrets.server-password }}
108+ # GPG_PASSPHRASE: ${{ secrets.gpg-passphrase }}
0 commit comments