File tree Expand file tree Collapse file tree
actions/package-and-push-binary Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -19,6 +19,12 @@ inputs:
1919 source_directory :
2020 description : The directory where the binary is located.
2121 required : true
22+ gpg_private_key :
23+ description : The private key for signing the release asset.
24+ required : true
25+ gpg_passphrase :
26+ description : The passphrase for the private key.
27+ required : true
2228
2329runs :
2430 using : composite
5157 if : startsWith(github.ref, 'refs/tags/v')
5258 shell : bash
5359 env :
54- GPG_PRIVATE_KEY : ${{ secrets.GPG_PRIVATE_KEY }}
55- GPG_PASSPHRASE : ${{ secrets.GPG_PASSPHRASE }}
60+ GPG_PRIVATE_KEY : ${{ inputs.gpg_private_key }}
61+ GPG_PASSPHRASE : ${{ inputs.gpg_passphrase }}
5662 run : |
5763 echo "$GPG_PRIVATE_KEY" | gpg --batch --import
5864 KEY_ID=$(gpg --list-keys --with-colons | grep '^pub' | cut -d: -f5 | head -n1)
Original file line number Diff line number Diff line change 8787 ref_name : ${{ github.ref_name }}
8888 variant : cli
8989 source_directory : target/${{ matrix.target }}/release
90+ gpg_private_key : ${{ secrets.GPG_PRIVATE_KEY }}
91+ gpg_passphrase : ${{ secrets.GPG_PASSPHRASE }}
9092
9193 docker-manifest :
9294 runs-on : ubuntu-latest
You can’t perform that action at this time.
0 commit comments