.github/workflows: include LICENSE in binary builds

This commit is contained in:
Filippo Valsorda
2021-01-06 07:49:56 -05:00
committed by GitHub
parent a8573a5c8d
commit f7011ee36a

View File

@@ -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 )