diff options
author | Runxi Yu <me@runxiyu.org> | 2025-03-28 00:05:18 +0800 |
---|---|---|
committer | Runxi Yu <me@runxiyu.org> | 2025-03-28 00:05:18 +0800 |
commit | 3423432e7315a11652323e69cdec89312bde603c (patch) | |
tree | 40e6b85a263c6f644de19208b1609898eebefe8b | |
parent | One more blank line for version.go (diff) | |
download | forge-0.1.0.tar.gz forge-0.1.0.tar.zst forge-0.1.0.zip |
Add artifact uploadsv0.1.0
-rw-r--r-- | .build.yml | 12 |
1 files changed, 12 insertions, 0 deletions
@@ -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 |