CI: do gitea release on tag

This commit is contained in:
Dorian Zedler 2023-02-17 15:20:18 +01:00
parent 9645fb0052
commit c9f3883c19
Signed by: dorian
GPG key ID: 989DE36109AFA354

View file

@ -45,4 +45,28 @@ steps:
settings: settings:
folder: web folder: web
ssh_key: ssh_key:
from_secret: gitea-ssh-key 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*