File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2020 distribution : ' temurin'
2121 java-version : ' 17'
2222
23- - name : Import GPG key
24- run : |
25- echo $ORG_GRADLE_PROJECT_signingInMemoryKey | base64 --decode > private-key.gpg
26- gpg --batch --import private-key.gpg
27- gpg --list-secret-keys --keyid-format LONG
28- env :
29- ORG_GRADLE_PROJECT_signingInMemoryKey : ${{ secrets.ORG_GRADLE_PROJECT_SIGNINGINMEMORYKEY }}
30-
31- - name : Add the custom gpg signing program that passes the passphrase to the gpg CLI
32- run : |
33- rm -rf /tmp/gpg.sh
34- echo '#!/bin/bash' >> /tmp/gpg.sh
35- echo 'gpg --batch --pinentry-mode=loopback --passphrase $ORG_GRADLE_PROJECT_signingInMemoryKeyPassword $@' >> /tmp/gpg.sh
36- chmod +x /tmp/gpg.sh
37- env :
38- ORG_GRADLE_PROJECT_signingInMemoryKeyPassword : ${{ secrets.ORG_GRADLE_PROJECT_SIGNINGPASSWORD }}
39-
40- - name : Setup git
41- run : |
42- git config commit.gpgsign true
43- git config user.signingkey $ORG_GRADLE_PROJECT_signingInMemoryKeyId
44- git config gpg.program /tmp/gpg.sh
45- env :
46- ORG_GRADLE_PROJECT_signingInMemoryKeyId : ${{ secrets.ORG_GRADLE_PROJECT_SIGNINGKEYID }}
47-
48- - name : Verify GPG key import
49- run : gpg --list-keys
50-
5123 - name : Publish to Maven Central
5224 run : |
5325 echo "ORG_GRADLE_PROJECT_signingInMemoryKey: $ORG_GRADLE_PROJECT_signingInMemoryKey"
7749 - name : Update tag
7850 run : bundle exec fastlane update_tag
7951 env :
80- PREFIX : ' android'
81-
82- - name : Clean up
83- run : rm /tmp/gpg.sh
52+ PREFIX : ' android'
You can’t perform that action at this time.
0 commit comments