forked from MapComplete/MapComplete
		
	Scripts: deploy hosted now actually now uses the '/tmp/' directory
This commit is contained in:
		
							parent
							
								
									c0f7de25fd
								
							
						
					
					
						commit
						c3d905b26a
					
				
					 1 changed files with 3 additions and 3 deletions
				
			
		|  | @ -52,11 +52,11 @@ jobs: | ||||||
| 
 | 
 | ||||||
|       - name: Zipping dist file |       - name: Zipping dist file | ||||||
|         run: | |         run: | | ||||||
|           mv dist ${{ github.ref_name }} |           mv dist /tmp/${{ github.ref_name }} | ||||||
|           zip ${{ github.ref_name }}.zip -r ${{ github.ref_name }}/* |           zip /tmp/${{ github.ref_name }}.zip -r /tmp/${{ github.ref_name }}/* | ||||||
| 
 | 
 | ||||||
|       - name: uploading file |       - name: uploading file | ||||||
|         run: scp ${{ github.ref_name }}.zip hetzner:/root/staging/ |         run: scp /tmp/${{ github.ref_name }}.zip hetzner:/root/staging/ | ||||||
| 
 | 
 | ||||||
|       - name: unzipping remote file |       - name: unzipping remote file | ||||||
|         run: ssh hetzner "cd /root/staging && rm -rf ${{ github.ref_name }} && 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" |         run: ssh hetzner "cd /root/staging && rm -rf ${{ github.ref_name }} && 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