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
bin
build
build-done
.DS_Store
# Architecture specific extensions/prefixes

View File

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