Skip to content

Instantly share code, notes, and snippets.

@LearnWebCode
Created January 15, 2025 20:02
Show Gist options
  • Save LearnWebCode/09a0606345bcad8b264e0fedb0b69c50 to your computer and use it in GitHub Desktop.
Save LearnWebCode/09a0606345bcad8b264e0fedb0b69c50 to your computer and use it in GitHub Desktop.
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/
@VietAnhPhan
Copy link

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment