ci: try to get keyfile to work
Some checks failed
repod / xml (push) Successful in 29s
repod / php (push) Successful in 55s
repod / nodejs (push) Successful in 1m51s
repod / release (push) Failing after 2m47s

This commit is contained in:
Michel Roux 2024-01-15 21:30:01 +01:00
parent 81533d6485
commit 409503e441

View File

@ -63,7 +63,13 @@ jobs:
with: with:
node-version: ${{ steps.versions.outputs.nodeVersion }} node-version: ${{ steps.versions.outputs.nodeVersion }}
- run: npm i -g npm@${{ steps.versions.outputs.npmVersion }} - 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 - uses: akkuman/gitea-release-action@v1
with: with:
files: | files: |
@ -74,4 +80,4 @@ jobs:
method: POST method: POST
accept: 200,201 accept: 200,201
headers: '{ "Authorization": "Token <<<${{ secrets.TOKEN }}>>>" }' 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 }}>>>" }'