Skip to content

Commit 071a175

Browse files
committed
ci: run pre-build before Linter and skip mkdocs-build in pre-commit on PR
Made-with: Cursor
1 parent 18af6f1 commit 071a175

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

.github/workflows/main.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,15 @@ jobs:
5454
poetry install
5555
python -m nltk.downloader punkt
5656
57+
# Render blog .qmd → .md so Build uses correct index.md (with YAML)
58+
- name: Pre-build blog (quarto + inject)
59+
run: makim pages.pre-build
60+
61+
# Skip mkdocs-build in pre-commit so we don't fail when repo's md != pre-build output
5762
- name: Linter
5863
if: ${{ github.event_name == 'pull_request' }}
64+
env:
65+
PRE_COMMIT_SKIP: mkdocs-build
5966
run: |
6067
pre-commit install
6168
pre-commit run --all-files --verbose

0 commit comments

Comments
 (0)