From c269ad0034d9ebe8b441e5623b83f575f0358b86 Mon Sep 17 00:00:00 2001 From: lerentis Date: Mon, 6 Jun 2022 20:49:06 +0000 Subject: [PATCH] Update '.drone.yml' --- .drone.yml | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/.drone.yml b/.drone.yml index 03154ed..30d31f8 100644 --- a/.drone.yml +++ b/.drone.yml @@ -6,6 +6,15 @@ platform: os: linux arch: amd64 steps: + - name: fetch + image: docker:git + commands: + - git fetch --tags + when: + event: + - push + - pull_request + - tag - name: init image: golang:1.18.3-alpine3.16 commands: @@ -31,4 +40,13 @@ steps: when: event: - push - - pull_request \ No newline at end of file + - pull_request + - name: release + image: goreleaser/goreleaser + environment: + GITHUB_TOKEN: + from_secret: github_token + commands: + - goreleaser release + when: + event: tag