diff --git a/ci/build.sh b/ci/build.sh index ce204e6..ac2b405 100755 --- a/ci/build.sh +++ b/ci/build.sh @@ -2,7 +2,15 @@ export GOARCH=amd64 build(){ - go build -o bin/sshcode-$GOOS-$GOARCH + tmpdir=$(mktemp -d) + go build -o $tmpdir/sshcode + + pushd $tmpdir + tarname=sshcode-$GOOS-$GOARCH.tar + tar -cf $tarname sshcode + popd + cp $tmpdir/$tarname bin + rm -rf $tmpdir } GOOS=darwin build