From 23c60d1dbb9ec696a20609543b0540aeae0d2ee6 Mon Sep 17 00:00:00 2001 From: Caen De Silva Date: Fri, 9 Feb 2024 23:49:02 +0100 Subject: [PATCH] Write to temporary file --- .github/workflows/deploy-documentation-preview.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/deploy-documentation-preview.yml b/.github/workflows/deploy-documentation-preview.yml index 7cf44f81c2a..eb728999dd2 100644 --- a/.github/workflows/deploy-documentation-preview.yml +++ b/.github/workflows/deploy-documentation-preview.yml @@ -99,7 +99,10 @@ jobs: run: zip -r site.zip _site - name: Sign the artifact - run: openssl dgst -sha256 -sign ${{ secrets.CI_PREVIEW_SIGNING_RSA_PRIVATE_KEY }} -out signature.bin site.zip + run: | + echo ${{ secrets.CI_PREVIEW_SIGNING_RSA_PRIVATE_KEY }} > private.pem + openssl dgst -sha256 -sign private.pem -out signature.bin site.zip + unlink private.pem - name: Upload the artifact run: |