Skip to content

clear cache endpoint #8

clear cache endpoint

clear cache endpoint #8

Workflow file for this run

name: Build and Publish Production Theme
on:
pull_request:
branches:
- main
push:
branches:
- main
jobs:
FTP-Deploy-Action:
name: FTP-Deploy-Action
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: Use Node.js 12.x
uses: actions/setup-node@v1
with:
node-version: "12.x"
- name: Build Project
run: |
npm install --quiet
npm run production
- name: List output files
run: ls
- name: Deploy to Server
uses: easingthemes/ssh-deploy@v2.1.5
env:
SSH_PRIVATE_KEY: ${{ secrets.SSH_PRIVATE }}
REMOTE_HOST: 34.174.186.154
REMOTE_USER: motherhoodcommunityv2
REMOTE_PORT: 14140
ARGS: -rltgoDzvO --exclude .git --exclude .github --exclude node_modules
TARGET: /www/motherhoodcommunityv2_167/public/wp-content/themes/motherhoodcommunity-v2
- name: Hit Kinsta Cache Webhook Endpoint
run: |
curl -X POST https://motherhoodcommunity.com/super-secret-cache-reset
- name: Hit WP Rocket Cache Webhook Endpoint
run: |
curl -X POST https://motherhoodcommunity.com/clear-wp-rocket-cache