mirror of
				https://github.com/taigrr/yq
				synced 2025-01-18 04:53:17 -08: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 | ||||
| bin | ||||
| build | ||||
| build-done | ||||
| .DS_Store | ||||
| 
 | ||||
| # Architecture specific extensions/prefixes | ||||
|  | ||||
| @ -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 | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user