ci.sh can build a tarball now

This commit is contained in:
Neale Pickett 2023-10-18 15:12:38 -06:00
parent eba861aed6
commit 40b9acf33f
2 changed files with 8 additions and 0 deletions

3
.gitignore vendored
View File

@ -3,3 +3,6 @@
.idea
/vendor/
__debug_bin
*.tar.gz
transpile
mothd

View File

@ -43,6 +43,11 @@ case $ACTION in
run docker push $image
done
;;
release)
run go build -v ./cmd/mothd
run go build -v ./cmd/transpile
run tar czf moth-$(git tag --contains).$(uname -s)-$(uname -m).tar.gz mothd transpile theme
;;
*)
echo "Unknown action: $1" 1>&2
exit 1