Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(ci): only add the secret key to env when necessary
Browse files Browse the repository at this point in the history
Signed-off-by: Luca Guerra <luca@guerra.sh>
LucaGuerra committed Apr 28, 2023

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
1 parent 511e370 commit 383a850
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/reusable_publish_packages.yaml
Original file line number Diff line number Diff line change
@@ -18,7 +18,6 @@ permissions:

env:
AWS_S3_REGION: eu-west-1
GPG_KEY: ${{ secrets.GPG_KEY }}

jobs:
publish-packages:
@@ -74,6 +73,8 @@ jobs:
path: /tmp

- name: Import gpg key
env:
GPG_KEY: ${{ secrets.GPG_KEY }}
run: printenv GPG_KEY | gpg --import -

- name: Sign rpms
@@ -139,6 +140,8 @@ jobs:
path: /tmp

- name: Import gpg key
env:
GPG_KEY: ${{ secrets.GPG_KEY }}
run: printenv GPG_KEY | gpg --import -

- name: Publish deb

0 comments on commit 383a850

Please sign in to comment.