aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJakob Borg <jakob@kastelo.net>2023-06-06 13:40:02 +0200
committerJakob Borg <jakob@kastelo.net>2023-06-06 13:40:02 +0200
commit027359755dea15333de4e9f173d2a760cade35ef (patch)
tree7ee38d3b6cfe34ee9203e62981c510a31e7cc455
parent8cdd5ac5f28a83f3b5fe60d2f2051431f6112207 (diff)
downloadsyncthing-release-test-signing.tar.gz
syncthing-release-test-signing.zip
-rw-r--r--.github/workflows/build-syncthing.yaml7
1 files changed, 4 insertions, 3 deletions
diff --git a/.github/workflows/build-syncthing.yaml b/.github/workflows/build-syncthing.yaml
index 71840d03e..a317a8051 100644
--- a/.github/workflows/build-syncthing.yaml
+++ b/.github/workflows/build-syncthing.yaml
@@ -467,8 +467,8 @@ jobs:
- name: Sign
run: |
- apt update
- apt -y install gnupg
+ sudo apt update
+ sudo apt -y install gnupg
export SIGNING_KEY="$RUNNER_TEMP/gpg-secret.asc"
echo "$GNUPG_SIGNING_KEY_BASE64" | base64 -d > "$SIGNING_KEY"
@@ -479,7 +479,8 @@ jobs:
sha1sum "${files[@]}" | gpg --clearsign > sha1sum.txt.asc
sha256sum "${files[@]}" | gpg --clearsign > sha256sum.txt.asc
gpg --sign --armour --detach syncthing-source-*.tar.gz
- rm -f "$SIGNING_KEY"
+ popd
+ rm -f "$SIGNING_KEY" .gnupg
env:
GNUPG_SIGNING_KEY_BASE64: ${{ secrets.GNUPG_SIGNING_KEY_BASE64 }}