Fixed address gravity forms validation #63
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 to Staging | |
on: | |
push: | |
branches: | |
- stg | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
- name: Setup SSH | |
uses: webfactory/[email protected] | |
with: | |
ssh-private-key: ${{ secrets.SSH_PRIVATE_KEY }} | |
- name: Add known hosts | |
run: | | |
mkdir -p ~/.ssh | |
echo "${{ secrets.KNOWN_HOSTS }}" >> ~/.ssh/known_hosts | |
- name: Setup Node.js | |
uses: actions/setup-node@v2 | |
with: | |
node-version: "20" | |
- name: Install dependencies and build theme | |
working-directory: ./wp-content/themes/chrisbuyshomes | |
run: | | |
npm install | |
npm run build | |
- name: Sync Plugins and Themes to Staging | |
run: | | |
rsync -avz --delete ./wp-content/themes/ rootadmin@${{ secrets.SERVER_IP }}:/home/rootadmin/public_html/legacy-stg.chrisbuyshomes.com/wp-content/themes | |
rsync -avz --delete ./wp-content/plugins/ rootadmin@${{ secrets.SERVER_IP }}:/home/rootadmin/public_html/legacy-stg.chrisbuyshomes.com/wp-content/plugins | |
- name: Run Database Migrations in Staging | |
run: | | |
ssh rootadmin@${{ secrets.SERVER_IP }} "wp core update-db --path=/home/rootadmin/public_html/legacy-stg.chrisbuyshomes.com" |