Skip to content

Trying out a security check github action #3

Trying out a security check github action

Trying out a security check github action #3

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