mirror of
https://github.com/mikefarah/yq.git
synced 2024-12-19 20:19:04 +00:00
Publish moves files after uploading for speedy retries
This commit is contained in:
parent
84de9c078d
commit
a5f5fb2562
1
.gitignore
vendored
1
.gitignore
vendored
@ -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
|
||||||
|
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user