From f7011ee36a9140f778508810710aaa494faf2fb3 Mon Sep 17 00:00:00 2001 From: Filippo Valsorda Date: Wed, 6 Jan 2021 07:49:56 -0500 Subject: [PATCH] .github/workflows: include LICENSE in binary builds --- .github/workflows/build.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 014d75f..2560f56 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -23,6 +23,9 @@ jobs: function build_age() { DIR="$(mktemp -d)" mkdir "$DIR/age" + cp LICENSE "$DIR/age" + echo -e "\n---\n" >> "$DIR/age/LICENSE" + curl "https://golang.org/LICENSE?m=text" >> "$DIR/age/LICENSE" go build -o "$DIR/age" -ldflags "-X main.Version=$VERSION" ./cmd/... if [ "$GOOS" == "windows" ]; then ( cd "$DIR"; zip age.zip -r age )