From 409503e441875d65afa4fab809aef98849659bc7 Mon Sep 17 00:00:00 2001 From: Michel Roux Date: Mon, 15 Jan 2024 21:30:01 +0100 Subject: [PATCH] ci: try to get keyfile to work --- .gitea/workflows/repod.yml | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/.gitea/workflows/repod.yml b/.gitea/workflows/repod.yml index 83c9080..15759a1 100644 --- a/.gitea/workflows/repod.yml +++ b/.gitea/workflows/repod.yml @@ -63,7 +63,13 @@ jobs: with: node-version: ${{ steps.versions.outputs.nodeVersion }} - run: npm i -g npm@${{ steps.versions.outputs.npmVersion }} - - run: make dist + - id: dist + run: | + make dist + echo $KEYFILE > /tmp/repod.key + echo SIGNATURE=$(openssl dgst -sha512 -sign /tmp/repod.key build/artifacts/repod.tar.gz | openssl base64) >> $GITHUB_OUTPUT + env: + KEYFILE: ${{ secrets.KEYFILE }} - uses: akkuman/gitea-release-action@v1 with: files: | @@ -74,4 +80,4 @@ jobs: method: POST accept: 200,201 headers: '{ "Authorization": "Token <<<${{ secrets.TOKEN }}>>>" }' - data: '{ "download": "https://git.crystalyx.net/Xefir/repod/releases/download/latest/repod.tar.gz", "signature": "<<<${{ secrets.SIGNATURE }}>>>" }' + data: '{ "download": "https://git.crystalyx.net/Xefir/repod/releases/download/latest/repod.tar.gz", "signature": "<<<${{ steps.dist.outputs.SIGNATURE }}>>>" }'