use zip instead of git-archive

Signed-off-by: Davanum Srinivas <davanum@gmail.com>
This commit is contained in:
Davanum Srinivas 2022-02-07 14:35:42 -05:00
parent 9f791bbf5b
commit 45f30d8a10
No known key found for this signature in database
GPG Key ID: 80D83A796103BF59

View File

@ -45,5 +45,6 @@ export PATH=${GOPATH}/bin:${PWD}/third_party/etcd:/usr/local/go/bin:${PATH}
make update
if [[ -d "${ARTIFACTS:-}" ]]; then
git archive -o "${ARTIFACTS}/updated-files.zip" HEAD
# ignore the .git, _output directories and zip up everything else
zip -y -r "${ARTIFACTS}/updated-files.zip" . -x '*.git*' -x '*_output*'
fi