Skip to content

Commit

Permalink
Hotfix: adding an action
Browse files Browse the repository at this point in the history
  • Loading branch information
joelsteidl committed Nov 25, 2023
1 parent 26b96e9 commit a405585
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
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 ~/providencedenver.org/web/
git pull
wp db export pbc_wp_prod_`date +%Y-%m-%d-%H.%M.%S`.sql --gzip
wp core update-db

0 comments on commit a405585

Please sign in to comment.