Skip to content

Commit 13f758b

Browse files
authored
release/ci: Pass through GPG auth for releases (#3460)
Signed-off-by: Ryan Northey <ryan@synca.io>
1 parent bc5a6d3 commit 13f758b

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

.github/workflows/_publish.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,8 @@ jobs:
7878
secrets:
7979
app-id: ${{ secrets.app-id }}
8080
app-key: ${{ secrets.app-key }}
81+
gpg-key: ${{ secrets.gpg-key }}
82+
gpg-password: ${{ secrets.gpg-password }}
8183
if: >-
8284
inputs.conclusion == 'success'
8385
&& ! inputs.skip

.github/workflows/_publish_release.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,8 +108,8 @@ jobs:
108108
inputs.artifacts
109109
uses: envoyproxy/toolshed/actions/gpg@fa7bbf3b718788fe1d3f3606afa92304748559e2
110110
with:
111-
gpg-key: ${{ secrets.gpg-key }}
112-
gpg-password: ${{ secrets.gpg-password }}
111+
gpg-key: ${{ ! inputs.dry-run && secrets.gpg-key || '' }}
112+
gpg-password: ${{ ! inputs.dry-run && secrets.gpg-password || '' }}
113113
- name: Release title (eg commit message)
114114
id: title
115115
uses: envoyproxy/toolshed/actions/jq@fa7bbf3b718788fe1d3f3606afa92304748559e2

0 commit comments

Comments
 (0)