Skip to content

sanity-webhook

sanity-webhook #22

name: update sanity display in development mode
on:
repository_dispatch:
types: [sanity-webhook]
jobs:
build:
runs-on: macos-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Use Node.js 18
uses: actions/setup-node@v2
with:
node-version: '18.18.0'
- name: Install dependencies
run: npm ci
# github actions cannot run gatsby commands without global install
- name: Install Gatsby CLI globally on github action servers
run: npm install -g gatsby-cli@latest
# attempt to echo processes
#- name: List Gatsby processes
# run: ps aux
#- name: Print pkill version
# run: pkill
# kill every development server instance / worker, if running
#- name: Stop Gatsby development server
# run: pkill -f 'gatsby'
- name: Clean Gatsby cache
run: npx gatsby clean
- name: Start Gatsby development server
run: npx gatsby develop