fix bottling gnupg

This commit is contained in:
Jacob Heider 2023-11-11 22:30:31 -05:00
parent b0070b090f
commit f71b32abe2
No known key found for this signature in database
GPG key ID: 59D15ADC7DCD39BB
2 changed files with 8 additions and 8 deletions

View file

@ -50,13 +50,7 @@ jobs:
timeout-minutes: 10 timeout-minutes: 10
with: with:
prefix: ${{ github.workspace }}/.pkgx prefix: ${{ github.workspace }}/.pkgx
pkgs: gnupg.org
- run: |
echo $GPG_PRIVATE_KEY | \
base64 -d | \
pkgx +gnupg.org gpg --import --batch --yes
env:
GPG_PRIVATE_KEY: ${{ secrets.GPG_PRIVATE_KEY }}
- uses: actions/download-artifact@v3 - uses: actions/download-artifact@v3
if: ${{ inputs.new-version }} if: ${{ inputs.new-version }}
@ -92,6 +86,12 @@ jobs:
done done
working-directory: ${{ github.workspace }}/.pkgx working-directory: ${{ github.workspace }}/.pkgx
- run: echo $GPG_PRIVATE_KEY |
base64 -d |
pkgx gpg --import --batch --yes
env:
GPG_PRIVATE_KEY: ${{ secrets.GPG_PRIVATE_KEY }}
- uses: pkgxdev/brewkit/actions/bottle@v0 - uses: pkgxdev/brewkit/actions/bottle@v0
id: bottle-xz id: bottle-xz
with: with:

View file

@ -3,7 +3,7 @@
d=$(dirname "$0") d=$(dirname "$0")
etc="$d/../etc/gnupg" etc="$d/../etc/gnupg"
export GNUPGHOME=${GNUPGHOME:-"$etc"} export GNUPGHOME="${GNUPGHOME:-"$etc"}"
if [ ! -f "$etc/gpg.conf" ]; then if [ ! -f "$etc/gpg.conf" ]; then
mkdir -p "$etc" mkdir -p "$etc"