From 64b0335e0ae45a4bd264bbab008551b7820f8811 Mon Sep 17 00:00:00 2001 From: jolheiser Date: Tue, 31 Mar 2020 15:10:18 -0500 Subject: [PATCH] Fix Drone release Signed-off-by: jolheiser --- .drone.yml | 34 +++++++++++++++++++++++++++++----- 1 file changed, 29 insertions(+), 5 deletions(-) diff --git a/.drone.yml b/.drone.yml index 951ba95..b2337b5 100644 --- a/.drone.yml +++ b/.drone.yml @@ -30,7 +30,7 @@ steps: --- kind: pipeline -name: release +name: test-release platform: os: linux @@ -41,6 +41,33 @@ trigger: - master event: - push + +steps: + - name: fetch-tags + pull: always + image: docker:git + commands: + - git fetch --tags --force + + - name: make-release + pull: always + image: techknowlogick/xgo:latest + environment: + GOPROXY: https://goproxy.cn + commands: + - export PATH=$PATH:$GOPATH/bin + - make release + +--- +kind: pipeline +name: release + +platform: + os: linux + arch: amd64 + +trigger: + event: - tag steps: @@ -50,7 +77,7 @@ steps: commands: - git fetch --tags --force - - name: release + - name: make-release pull: always image: techknowlogick/xgo:latest environment: @@ -68,6 +95,3 @@ steps: base_url: https://gitea.com files: - "dist/release/*" - when: - event: - - tag \ No newline at end of file