From c48432c0b5cdc5ac158e8b701bedf46c360a1c8d Mon Sep 17 00:00:00 2001 From: Michel Roux Date: Tue, 16 Jan 2024 11:14:52 +0100 Subject: [PATCH] ci: remote automate publishing --- .gitea/workflows/repod.yml | 16 +--------------- 1 file changed, 1 insertion(+), 15 deletions(-) diff --git a/.gitea/workflows/repod.yml b/.gitea/workflows/repod.yml index ad730b4..c65a856 100644 --- a/.gitea/workflows/repod.yml +++ b/.gitea/workflows/repod.yml @@ -63,22 +63,8 @@ jobs: with: node-version: ${{ steps.versions.outputs.nodeVersion }} - run: npm i -g npm@${{ steps.versions.outputs.npmVersion }} - - id: dist - name: 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 }} + - run: make dist - uses: akkuman/gitea-release-action@v1 with: files: | build/artifacts/repod.tar.gz - - 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.dist.outputs.SIGNATURE }}>>>" }'