Skip to content

Commit f871b50

Browse files
author
rickiewars
committed
Fix release pipeline
1 parent 4a1ed20 commit f871b50

2 files changed

Lines changed: 10 additions & 2 deletions

File tree

.github/actions/package-and-push-binary/action.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff 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

2329
runs:
2430
using: composite
@@ -51,8 +57,8 @@ runs:
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)

.github/workflows/Release.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,8 @@ jobs:
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

0 commit comments

Comments
 (0)