- 
      
 - 
        
Save KillerDesigner/6a896b8bd779ed35b2d02c9bbd8bb16c to your computer and use it in GitHub Desktop.  
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | name: Publish Website | |
| on: | |
| push: | |
| branches: | |
| - main | |
| jobs: | |
| web-deploy: | |
| name: π Deploy Website Every Commit | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: π Get Latest Code | |
| uses: actions/checkout@v3 | |
| - name: π Sync Files | |
| uses: SamKirkland/web-deploy@v1 | |
| with: | |
| target-server: live.learnwebcode.com | |
| remote-user: youruser | |
| private-ssh-key: ${{ secrets.SSH_KEY }} | |
| destination-path: /home/youruser/live.learnwebcode.com/wp-content/themes/my-awesome-theme/ | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment