From 6099a2ba81ad97d4e5083891009e4c6e30ef728f Mon Sep 17 00:00:00 2001 From: Akulij Date: Sun, 4 May 2025 17:27:38 +0300 Subject: [PATCH] cd.yaml: call webhook to deploy built binary --- .gitea/workflows/cd.yaml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.gitea/workflows/cd.yaml b/.gitea/workflows/cd.yaml index e693bec..035b78f 100644 --- a/.gitea/workflows/cd.yaml +++ b/.gitea/workflows/cd.yaml @@ -61,3 +61,6 @@ jobs: name: botrunner path: target/x86_64-unknown-linux-gnu/release/gongbotrs + - name: Deploy with WebHook + # temporary solutino to hardcode artifact url, because upload-artifact's artifact-url gives wrong one + run: curl http://${{ secrets.SERVER_ADDR }}/hooks/gongbot-deploy?binaryzip='https://git.akulij.ru/akulij/gongbotrs/actions/runs/${{ gitea.run_number }}/artifacts/botrunner'