remove themes #13
This file contains 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: Deploy WordPress DEV | |
on: | |
push: | |
branches: | |
- develop # Replace 'main' with your preferred branch if necessary | |
jobs: | |
build-and-deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Repository | |
uses: actions/checkout@v3 | |
- name: Set up SSH | |
uses: webfactory/[email protected] | |
with: | |
ssh-private-key: ${{ secrets.SSH_PKEY_PUB }} | |
- name: Sync WordPress Files to Server | |
env: | |
RSYNC_OPTIONS: '-avz --delete' | |
DEPLOY_PATH: '/opt/website/' # Replace with your server path | |
SERVER_USER: 'root' # Replace with your server username | |
SERVER_HOST: '177.92.144.247' # Replace with your server hostname or IP | |
run: | | |
rsync $RSYNC_OPTIONS ./ ${{ env.SERVER_USER }}@${{ env.SERVER_HOST }}:${{ env.DEPLOY_PATH }} | |
- name: Run WordPress Deployment Script | |
env: | |
SERVER_USER: 'root' # Replace with your server username | |
SERVER_HOST: '177.92.144.247' # Replace with your server hostname or IP | |
run: | | |
ssh ${{ env.SERVER_USER }}@${{ env.SERVER_HOST }} "cd ${{ env.DEPLOY_PATH }} && ./deploy.sh" |