From 2e31f202fca0fd8dfa79f5c792eccd7fd637813d Mon Sep 17 00:00:00 2001 From: Michel Roux Date: Mon, 15 Jan 2024 22:34:53 +0100 Subject: [PATCH] test --- .gitea/workflows/repod.yml | 19 ++++++------------- 1 file changed, 6 insertions(+), 13 deletions(-) diff --git a/.gitea/workflows/repod.yml b/.gitea/workflows/repod.yml index a3d6985..7702fb3 100644 --- a/.gitea/workflows/repod.yml +++ b/.gitea/workflows/repod.yml @@ -45,7 +45,7 @@ jobs: - run: npm run build release: - #if: gitea.ref_type == 'tag' + if: gitea.ref_type == 'tag' runs-on: ubuntu-latest container: nextcloud:28 steps: @@ -68,18 +68,11 @@ jobs: 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 + openssl dgst -sha512 -sign /tmp/repod.key build/artifacts/repod.tar.gz | openssl base64 > build/artifacts/repod.asc env: KEYFILE: ${{ secrets.KEYFILE }} - #- uses: akkuman/gitea-release-action@v1 - # with: - # files: | - # build/artifacts/repod.tar.gz - - uses: actionsflow/axios@v1 + - uses: akkuman/gitea-release-action@v1 with: - url: https://apps.nextcloud.com/api/v1/apps/releases - method: POST - accept: 200,201,400 - headers: '{ "Authorization": "Token <<<${{ secrets.TOKEN }}>>>" }' - data: '{ "download": "https://git.crystalyx.net/Xefir/repod/releases/download/latest/repod.tar.gz", "signature": "<<<${{ steps.dist.outputs.SIGNATURE }}>>>" }' - - run: echo ${{ steps.api.outputs.data }} \ No newline at end of file + files: | + build/artifacts/repod.tar.gz + build/artifacts/repod.asc