diff --git a/.gitea/workflows/repod.yml b/.gitea/workflows/repod.yml index c65a856..ea75314 100644 --- a/.gitea/workflows/repod.yml +++ b/.gitea/workflows/repod.yml @@ -68,3 +68,19 @@ jobs: with: files: | build/artifacts/repod.tar.gz + - uses: FKLC/sign-files-action@v1.0.0 + with: + privateKey: ${{ secrets.PRIVATEKEY }} + algorithm: 'RSA-SHA512' + extension: '.sig' + files: | + build/artifacts/repod.tar.gz + - id: sign + run: echo "SIGNATURE=$(cat build/artifacts/repod.sig)" >> $GITHUB_OUTPUT + - uses: actionsflow/axios@v1 + with: + url: https://apps.nextcloud.com/api/v1/apps/releases + method: POST + accept: 200,201 + headers: '{ "Authorization": "Token <<<${{ secrets.TOKEN }}>>>" }' + data: '{ "download": "https://git.crystalyx.net/Xefir/repod/releases/download/<<<${{ gitea.ref_name }}>>>/repod.tar.gz", "signature": "<<<${{ steps.sign.outputs.SIGNATURE }}>>>" }'