File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2828 RELEASE_TOKEN : ${{ secrets.PUBLIC_RELEASES_TOKEN }}
2929 RELEASE_ACTOR_GPG_PRIVATE_KEY : ${{ secrets.PUBLIC_RELEASES_GPG_PRIVATE_KEY }}
3030 RELEASE_ACTOR_GPG_PASSPHRASE : ${{ secrets.PUBLIC_RELEASES_GPG_PASSPHRASE }}
31+ RELEASE_ACTOR_GPG_KEY_FINGERPRINT : ${{ secrets.PUBLIC_RELEASES_GPG_FINGERPRINT }}
3132
3233 pypi-publish :
3334 name : Publish to PyPI
Original file line number Diff line number Diff line change 1+ name : Fix GPG Agent Issue
2+
3+ on :
4+ push :
5+ branches : [ TECHOPS-18898-pub ]
6+
7+ jobs :
8+ test-gpg-fix :
9+ runs-on : ubuntu-latest
10+ steps :
11+ - uses : actions/checkout@v4
12+
13+ - name : Start GPG Agent
14+ run : |
15+ mkdir -p ~/.gnupg
16+ chmod 700 ~/.gnupg
17+ echo "allow-loopback-pinentry" > ~/.gnupg/gpg-agent.conf
18+ echo "pinentry-mode loopback" > ~/.gnupg/gpg.conf
19+ gpgconf --kill gpg-agent
20+ gpgconf --launch gpg-agent
21+ export GPG_TTY=$(tty)
22+ echo "GPG_TTY=$(tty)" >> $GITHUB_ENV
23+
24+ - name : Import GPG key
25+ uses : crazy-max/ghaction-import-gpg@v6.1.0
26+ with :
27+ gpg_private_key : ${{ secrets.RELEASE_ACTOR_GPG_PRIVATE_KEY }}
28+ passphrase : ${{ secrets.RELEASE_ACTOR_GPG_PASSPHRASE }}
29+ git_config_global : true
30+ git_user_signingkey : true
31+ git_commit_gpgsign : true
You can’t perform that action at this time.
0 commit comments