From 9b6319cf8961ee561be6c1c996ed7b4e57e8eac0 Mon Sep 17 00:00:00 2001 From: Michel Roux Date: Mon, 15 Jan 2024 18:07:37 +0100 Subject: [PATCH] ci: automate publishing on appstore --- .gitea/workflows/repod.yml | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/.gitea/workflows/repod.yml b/.gitea/workflows/repod.yml index d817b95..571bb16 100644 --- a/.gitea/workflows/repod.yml +++ b/.gitea/workflows/repod.yml @@ -45,7 +45,7 @@ jobs: - run: npm run build release: - if: startsWith(gitea.ref, 'refs/tags') + if: gitea.ref_type == 'tag' runs-on: ubuntu-latest container: nextcloud:28 steps: @@ -67,4 +67,12 @@ jobs: - uses: akkuman/gitea-release-action@v1 with: files: | - build/artifacts/RePod.tar.gz + 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 }>>>" }' + content-type: application/json + data: '{ "download": "https://git.crystalyx.net/Xefir/repod/releases/download/latest/repod.tar.gz", "signature": "<<<${{ secrets.SIGNATURE }}>>>" }'