From 80043a571d3b2cd8012ca1279e05501f22442446 Mon Sep 17 00:00:00 2001 From: Steven Polley Date: Sun, 14 Apr 2024 18:39:08 -0600 Subject: [PATCH 1/3] release on tag --- .drone.yml | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/.drone.yml b/.drone.yml index 8c6cf15..cd7262e 100644 --- a/.drone.yml +++ b/.drone.yml @@ -49,10 +49,9 @@ steps: base_url: https://deadbeef.codes files: dist/* when: - target: - include: - - release - + event: + - tag + volumes: - name: publicrelease host: From 0d113b4e8bda3a19fc375dd97808e9fc4feaa75a Mon Sep 17 00:00:00 2001 From: Steven Polley Date: Sun, 14 Apr 2024 19:05:11 -0600 Subject: [PATCH 2/3] fix dist files path for releases --- .drone.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.drone.yml b/.drone.yml index 2d3bed2..dbb8252 100644 --- a/.drone.yml +++ b/.drone.yml @@ -86,11 +86,11 @@ steps: api_key: from_secret: drone_token base_url: https://deadbeef.codes - files: dist/* + files: /dist/* when: event: - tag - + volumes: - name: publicrelease host: From 4ec16513ac33abab450b9205271a7370aa28a404 Mon Sep 17 00:00:00 2001 From: Steven Polley Date: Sun, 14 Apr 2024 19:18:35 -0600 Subject: [PATCH 3/3] give meaningful names to build artifacts --- .drone.yml | 17 ++++------------- 1 file changed, 4 insertions(+), 13 deletions(-) diff --git a/.drone.yml b/.drone.yml index dbb8252..3153998 100644 --- a/.drone.yml +++ b/.drone.yml @@ -30,13 +30,7 @@ steps: commands: - . /root/.profile - cd hyp - - go build . - - mv -f hyp /dist - - cd ../hypd/server - - go generate - - cd .. - - go build . - - mv -f hypd /dist + - go build -o /dist/hyp-linux-amd64 . - name: build hypd (server) linux-amd64 @@ -54,8 +48,7 @@ steps: - cd hypd/server - go generate - cd .. - - go build . - - mv -f hypd /dist + - go build -o /dist/hypd-linux-amd64 . - name: build hyp (client) windows-amd64 @@ -71,9 +64,7 @@ steps: commands: - . /root/.profile - cd hyp - - go build . - - mv -f hyp.exe /dist - + - go build -o /dist/hyp-windows-amd64.exe . - name: release @@ -94,5 +85,5 @@ steps: volumes: - name: publicrelease host: - path: /data/public/build + path: /data/public/build/hyp