From c9f3883c197ade8677b080bd4463486a040281ea Mon Sep 17 00:00:00 2001 From: Dorian Zedler Date: Fri, 17 Feb 2023 15:20:18 +0100 Subject: [PATCH] CI: do gitea release on tag --- .drone.yml | 26 +++++++++++++++++++++++++- 1 file changed, 25 insertions(+), 1 deletion(-) diff --git a/.drone.yml b/.drone.yml index a56164d..9130249 100644 --- a/.drone.yml +++ b/.drone.yml @@ -45,4 +45,28 @@ steps: settings: folder: web ssh_key: - from_secret: gitea-ssh-key \ No newline at end of file + from_secret: gitea-ssh-key + +--- +kind: pipeline +name: release +depends_on: +- build-receiver-windows +- build-and-deploy-web +steps: + - name: download-receiver + image: alpine/curl + commands: + - curl https://itsblue.dev/api/packages/dorian/generic/ok-ready-go/$DRONE_COMMIT_SHA/receiver-windows.exe -o receiver-windows.exe + + - name: gitea-release + image: plugins/gitea-release + settings: + base_url: https://itsblue.dev + api_key: + from_secret: gitea-token + files: ./receiver-windows.exe + +trigger: + ref: + - refs/tags/v* \ No newline at end of file