Skip to content

Commit

Permalink
chore(ci): improved GPG_KEY management through an env.
Browse files Browse the repository at this point in the history
Signed-off-by: Federico Di Pierro <nierro92@gmail.com>

Co-authored-by: Luca Guerra <luca@guerra.sh>
  • Loading branch information
2 people authored and poiana committed Apr 27, 2023
1 parent 9d6a7d8 commit 86d33ae
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions .github/workflows/reusable_publish_packages.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ permissions:

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

jobs:
publish-packages:
Expand Down Expand Up @@ -49,8 +50,7 @@ jobs:
path: /tmp

- name: Import gpg key
run: |
echo $GPG_KEY | base64 -d | gpg --import
run: printenv GPG_KEY | gpg --import -

- name: Sign rpms
run: |
Expand Down Expand Up @@ -109,8 +109,7 @@ jobs:
path: /tmp

- name: Import gpg key
run: |
echo $GPG_KEY | base64 -d | gpg --import
run: printenv GPG_KEY | gpg --import -

- name: Publish deb
run: |
Expand Down

0 comments on commit 86d33ae

Please sign in to comment.