docs: only run workflow when docs are updated

pull/20/head
Gabe Farrell 6 months ago
parent aeb79adefb
commit 3af969b25c

@ -1,14 +1,12 @@
name: Deploy to GitHub Pages
on:
# Trigger the workflow every time you push to the `main` branch
# Using a different branch name? Replace `main` with your branchs name
push:
branches: [main]
# Allows you to run this workflow manually from the Actions tab on GitHub.
workflow_dispatch:
paths:
- 'docs/**'
- '.github/workflows/**'
# Allow this job to clone the repo and create a page deployment
permissions:
contents: read
pages: write

Loading…
Cancel
Save