Skip to content

Updating plugins and theme that cant be locally #10

Updating plugins and theme that cant be locally

Updating plugins and theme that cant be locally #10

Workflow file for this run

name: Deploy PBC
on:
push:
branches:
- master
jobs:
deploy-prod:
runs-on: ubuntu-latest
steps:
- name: Deploy to prod
uses: garygrossgarten/github-action-ssh@release
with:
host: ${{ secrets.SSH_HOST }}
username: ${{ secrets.SSH_USERNAME }}
privateKey: ${{ secrets.SSH_KEY }}
command: |
cd ~/${{ secrets.SSH_HOST }}/web/
git pull
wp db export ~/backups/pbc_wp_prod_`date +%Y-%m-%d-%H.%M.%S`.sql
wp core update-db