From 31336280e6862ed8c0b802c6ba1ad9c4b3b599ad Mon Sep 17 00:00:00 2001 From: Ian Fijolek Date: Fri, 8 Jan 2021 17:21:02 -0500 Subject: [PATCH] Add release uploads --- .drone.yml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/.drone.yml b/.drone.yml index b3c7117..3868b05 100644 --- a/.drone.yml +++ b/.drone.yml @@ -54,6 +54,29 @@ steps: commands: - make all-linux + - name: compress binaries for release + image: busybox + - find ./dist -type f -perm +111 -execdir tar -czvf {}.tar.gz {} \; + when: + event: tag + + - name: upload gitea release + image: plugins/gitea-release + settings: + title: ${DRONE_TAG} + files: dist/*.tar.gz + checksum: + - md5 + - sha1 + - sha256 + - sha512 + base_url: + from_secret: gitea_base_url + api_key: + from_secret: gitea_token + when: + event: tag + - name: push image - arm image: plugins/docker settings: