Spaces:
				
			
			
	
			
			
					
		Running
		
	
	
	
			
			
	
	
	
	
		
		
					
		Running
		
	
		coyotte508
		
	commited on
		
		
					Commit 
							
							·
						
						08012f0
	
1
								Parent(s):
							
							d938a5f
								
no downtime build system
Browse files
    	
        build.sh
    CHANGED
    
    | @@ -44,7 +44,8 @@ echo "Build completed successfully, uploading the build output..." | |
| 44 |  | 
| 45 | 
             
            # Those commands use the HF_TOKEN in the environment
         | 
| 46 | 
             
            # maybe we should use a tmp build branch and upload to it to have no downtime
         | 
| 47 | 
            -
            hfjs create-branch $HF_SPACE_NAME refs/ | 
| 48 | 
            -
            hfjs upload $HF_SPACE_NAME $OUTPUT_PATH $OUTPUT_PATH --repo-type space --revision refs/ | 
|  | |
| 49 |  | 
| 50 | 
             
            echo "Build and upload completed successfully."
         | 
|  | |
| 44 |  | 
| 45 | 
             
            # Those commands use the HF_TOKEN in the environment
         | 
| 46 | 
             
            # maybe we should use a tmp build branch and upload to it to have no downtime
         | 
| 47 | 
            +
            hfjs create-branch $HF_SPACE_NAME refs/tmp/build --repo-type space --empty --force
         | 
| 48 | 
            +
            hfjs upload $HF_SPACE_NAME $OUTPUT_PATH $OUTPUT_PATH --repo-type space --revision refs/tmp/build
         | 
| 49 | 
            +
            hfjs create-branch $HF_SPACE_NAME refs/convert/build --repo-type space --revision refs/tmp/build --force
         | 
| 50 |  | 
| 51 | 
             
            echo "Build and upload completed successfully."
         | 
