Skip to content

Instantly share code, notes, and snippets.

@synesthesia
Created September 3, 2020 11:02
Show Gist options
  • Save synesthesia/5ff026194c1cf75c9ee1c325a79da02e to your computer and use it in GitHub Desktop.
Save synesthesia/5ff026194c1cf75c9ee1c325a79da02e to your computer and use it in GitHub Desktop.
GH action to trigger netlify build for public docs
name: Trigger netlify build for public docs
on:
push:
branches:
- master
paths:
- 'public/**'
jobs:
trigger-publish:
runs-on: ubuntu-latest
steps:
- name: Invoke Netlify deployment hook
uses: distributhor/workflow-webhook@v1
env:
webhook_url: ${{ secrets.NETLIFY_HOOK_DOCS_PUBLIC }}?trigger_title=content_update
webhook_secret: "Anything"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment