aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.build.yml12
1 files changed, 12 insertions, 0 deletions
diff --git a/.build.yml b/.build.yml
index d5fafa0..1c5b559 100644
--- a/.build.yml
+++ b/.build.yml
@@ -1,6 +1,9 @@
image: alpine/edge
+secrets:
+ - 46f739e5-4538-45dd-a79f-bf173b7a2ed9
packages:
- go
+ - hut
- golangci-lint
- make
- gcc
@@ -15,3 +18,12 @@ tasks:
- lint: |
cd forge
golangci-lint run .
+ - upload: |
+ cd forge
+ x="$(git describe --exact || true)"
+ if [ -z "$x" ]; then
+ printf 'Not a tag, not uploading artifacts\n' >&2
+ else
+ mv forge forge-"$x"-linux-amd64
+ hut git artifact -r forge upload forge-"$x"-linux-amd64
+ fi