forked from MapComplete/MapComplete
		
	Chore(runner): fixes to zipped upload
This commit is contained in:
		
							parent
							
								
									fe0f6d1cbf
								
							
						
					
					
						commit
						8141f77076
					
				
					 1 changed files with 4 additions and 2 deletions
				
			
		
							
								
								
									
										6
									
								
								.github/workflows/deploy_hosted.yml
									
										
									
									
										vendored
									
									
								
							
							
						
						
									
										6
									
								
								.github/workflows/deploy_hosted.yml
									
										
									
									
										vendored
									
									
								
							|  | @ -56,13 +56,15 @@ jobs: | ||||||
|         shell: bash |         shell: bash | ||||||
| 
 | 
 | ||||||
|       - name: Zipping dist file |       - name: Zipping dist file | ||||||
|         run: zip ${{ github.ref_name }}.zip -r dist/ |         run: | | ||||||
|  |           mv dist ${{ github.ref_name }} | ||||||
|  |           zip ${{ github.ref_name }}.zip -r ${{ github.ref_name }}/* | ||||||
| 
 | 
 | ||||||
|       - name: uploading file |       - name: uploading file | ||||||
|         run: scp ${{ github.ref_name }}.zip hetzner:/root/staging/ |         run: scp ${{ github.ref_name }}.zip hetzner:/root/staging/ | ||||||
| 
 | 
 | ||||||
|       - name: unzipping remote file |       - name: unzipping remote file | ||||||
|         run: ssh hetzner "cd /root/staging && unzip ${{ github.ref_name }}.zip && rm -rf /root/public/${{ github.ref_name }} && mv /root/staging/${{ github.ref_name }}/ /root/public/" |         run: ssh hetzner "cd /root/staging && unzip ${{ github.ref_name }}.zip && rm -rf /root/public/${{ github.ref_name }} && mv /root/staging/${{ github.ref_name }}/ /root/public/ && rm ${{ github.ref_name }}.zip" | ||||||
| 
 | 
 | ||||||
|            |            | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue