Publish moves files after uploading for speedy retries

This commit is contained in:
Mike Farah 2019-05-16 14:54:58 +10:00
parent 84de9c078d
commit a5f5fb2562
2 changed files with 4 additions and 1 deletions

1
.gitignore vendored
View File

@ -8,6 +8,7 @@ _obj
_test _test
bin bin
build build
build-done
.DS_Store .DS_Store
# Architecture specific extensions/prefixes # Architecture specific extensions/prefixes

View File

@ -16,6 +16,7 @@ release() {
} }
upload() { upload() {
mkdir -p ./build-done
while IFS= read -r -d $'\0'; do while IFS= read -r -d $'\0'; do
file=$REPLY file=$REPLY
BINARY=$(basename "${file}") BINARY=$(basename "${file}")
@ -27,8 +28,9 @@ upload() {
--tag "$CURRENT" \ --tag "$CURRENT" \
--name "${BINARY}" \ --name "${BINARY}" \
--file "$file" --file "$file"
mv "$file" "./build-done/${BINARY}"
done < <(find ./build -mindepth 1 -maxdepth 1 -print0) done < <(find ./build -mindepth 1 -maxdepth 1 -print0)
} }
release # release
upload upload