@@ -59,24 +59,10 @@ jobs:
5959 server-username : MAVEN_USERNAME
6060 server-password : MAVEN_TOKEN
6161 gpg-passphrase : GPG_PASSPHRASE # env variable for GPG private key passphrase
62- - name : Verify secrets access
63- run : |
64- echo "List of available secrets:"
65- echo "GPG_PRIVATE_KEY exists: ${{ secrets.GPG_PRIVATE_KEY != '' }}"
66- echo "GPG_PASSPHRASE exists: ${{ secrets.GPG_PASSPHRASE != '' }}"
67- - name : test gpg
68- env :
69- GPG_PRIVATE_KEY : ${{ secrets.GPG_PRIVATE_KEY }}
70- run : |
71- echo "GPG key length: ${#GPG_PRIVATE_KEY}"
72- echo "First 10 lines:"
73- echo "$GPG_PRIVATE_KEY" | head -n 10
74- echo "Last 10 lines:"
75- echo "$GPG_PRIVATE_KEY" | tail -n 10
7662
7763 - name : Import GPG key
7864 id : import_gpg
79- # if: github.event_name == 'push'
65+ if : github.event_name == 'push'
8066 uses : crazy-max/ghaction-import-gpg@v4
8167 with :
8268 gpg_private_key : ${{ secrets.GPG_PRIVATE_KEY }}
10187 make build
10288
10389 - name : upload linux library
104- # if: github.event_name == 'push'
90+ if : github.event_name == 'push'
10591 uses : actions/upload-artifact@v4
10692 with :
10793 name : shared-library-${{ github.sha }}
@@ -136,7 +122,7 @@ jobs:
136122 java/*/target/**/TEST-*.xml
137123
138124 - name : deploy
139- # if: github.event_name == 'push'
125+ if : github.event_name == 'push'
140126 working-directory : java
141127 run : |
142128 ./mvnw --batch-mode deploy -DskipTests=true -Dscalatest.skip=true
0 commit comments