mirror of
				https://github.com/Burnett01/rsync-deployments.git
				synced 2025-11-04 09:29:04 +01:00 
			
		
		
		
	use actions/checkout@v2 for even faster deployments
The actions/checkout@v2 action uses a checkout depth of 1 by default. There is no more need to set it manually.
This commit is contained in:
		
							parent
							
								
									819cb701d2
								
							
						
					
					
						commit
						469a77e7aa
					
				
					 1 changed files with 3 additions and 25 deletions
				
			
		
							
								
								
									
										28
									
								
								README.md
									
									
									
									
									
								
							
							
						
						
									
										28
									
								
								README.md
									
									
									
									
									
								
							| 
						 | 
				
			
			@ -47,7 +47,7 @@ jobs:
 | 
			
		|||
  deploy:
 | 
			
		||||
    runs-on: ubuntu-latest
 | 
			
		||||
    steps:
 | 
			
		||||
    - uses: actions/checkout@v1
 | 
			
		||||
    - uses: actions/checkout@v2
 | 
			
		||||
    - name: rsync deployments
 | 
			
		||||
      uses: burnett01/rsync-deployments@4.0
 | 
			
		||||
      with:
 | 
			
		||||
| 
						 | 
				
			
			@ -66,7 +66,7 @@ jobs:
 | 
			
		|||
  deploy:
 | 
			
		||||
    runs-on: ubuntu-latest
 | 
			
		||||
    steps:
 | 
			
		||||
    - uses: actions/checkout@v1
 | 
			
		||||
    - uses: actions/checkout@v2
 | 
			
		||||
    - name: rsync deployments
 | 
			
		||||
      uses: burnett01/rsync-deployments@4.0
 | 
			
		||||
      with:
 | 
			
		||||
| 
						 | 
				
			
			@ -86,29 +86,7 @@ jobs:
 | 
			
		|||
  deploy:
 | 
			
		||||
    runs-on: ubuntu-latest
 | 
			
		||||
    steps:
 | 
			
		||||
    - uses: actions/checkout@v1
 | 
			
		||||
    - name: rsync deployments
 | 
			
		||||
      uses: burnett01/rsync-deployments@4.0
 | 
			
		||||
      with:
 | 
			
		||||
        switches: -avzr --delete
 | 
			
		||||
        path: src/
 | 
			
		||||
        remote_path: /var/www/html/
 | 
			
		||||
        remote_host: ${{ secrets.DEPLOY_HOST }}
 | 
			
		||||
        remote_port: ${{ secrets.DEPLOY_PORT }}
 | 
			
		||||
        remote_user: ${{ secrets.DEPLOY_USER }}
 | 
			
		||||
        remote_key: ${{ secrets.DEPLOY_KEY }}
 | 
			
		||||
```
 | 
			
		||||
 | 
			
		||||
For maximum speed limit the checkout action (``actions/checkout@v1``) to a depth of 2:
 | 
			
		||||
 | 
			
		||||
```
 | 
			
		||||
jobs:
 | 
			
		||||
  deploy:
 | 
			
		||||
    runs-on: ubuntu-latest
 | 
			
		||||
    steps:
 | 
			
		||||
    - uses: actions/checkout@v1
 | 
			
		||||
      with:
 | 
			
		||||
        fetch-depth: 2
 | 
			
		||||
    - uses: actions/checkout@v2
 | 
			
		||||
    - name: rsync deployments
 | 
			
		||||
      uses: burnett01/rsync-deployments@4.0
 | 
			
		||||
      with:
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in a new issue