From b4f5ec23eb0914c4e631c2b5ce04bbc469caa550 Mon Sep 17 00:00:00 2001 From: Malcolm Roberts Date: Thu, 15 Feb 2024 19:16:34 +0000 Subject: [PATCH] Added creating releases --- .drone.yml | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/.drone.yml b/.drone.yml index 044e7b6..7e44904 100644 --- a/.drone.yml +++ b/.drone.yml @@ -5,4 +5,15 @@ steps: - name: build image: golang commands: - - go build -ldflags="-s -w" \ No newline at end of file + - GOOS=windows GOARCH=amd64 go build -ldflags="-s -w" -o dist/usergen-amd64-windows.exe + GOOS=linux GOARCH=amd64 go build -ldflags="-s -w" -o dist/usergen-amd64-linux + GOOS=darwin GOARCH=amd64 go build -ldflags="-s -w" -o dist/usergen-amd64-darwin + +- name: create_release + image: plugins/gitea-release + settings: + api_key: + from_secret: gitea_public_releases + base_url: http://git.mroberts.dev + files: dist/* + checksum: sha256 \ No newline at end of file