Visitar URL original
gh-100072: only trigger netlify builds for doc changes by sobolevn · Pull Request #100074 · python/cpython · GitHub
Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
gh-100072: only trigger netlify builds for doc changes
  • Loading branch information
sobolevn committed Dec 7, 2022
commit 4bc124c303907c53e4bfd6ac5692efdd26e51e30
3 changes: 2 additions & 1 deletion .github/workflows/doc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,10 @@ on:
- '3.8'
- '3.7'
paths:
- '.github/workflows/doc.yml'
# Should be in sync with `netlify.toml`:
- 'Doc/**'
- 'Misc/**'
- '.github/workflows/doc.yml'

permissions:
contents: read
Expand Down
3 changes: 3 additions & 0 deletions netlify.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
base = "Doc/"
command = "make html"
publish = "build/html"
# Do not trigger netlify builds if docs were not changed.
# Changed files should be in sync with `.github/workflows/doc.yml`
ignore = "git diff --quiet $CACHED_COMMIT_REF $COMMIT_REF ./Doc ./Misc ./netlify.toml"

[build.environment]
PYTHON_VERSION = "3.8"
Expand Down