Skip to content

Commit 0d25316

Browse files
committed
fix(docs): track empty overrides dir with .gitkeep; add feat/doc-site-update to CI trigger; skip Pages deploy on feature branches
1 parent ef9c8a4 commit 0d25316

2 files changed

Lines changed: 5 additions & 0 deletions

File tree

.github/workflows/docs.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ on:
44
push:
55
branches:
66
- main
7+
- feat/doc-site-update
78
paths:
89
- 'docs/**'
910
- 'mkdocs.yml'
@@ -39,11 +40,15 @@ jobs:
3940
run: mkdocs build --clean
4041

4142
- name: Upload Pages artifact
43+
# Only upload artifact when on main (Pages deploy only runs from main)
44+
if: github.ref == 'refs/heads/main'
4245
uses: actions/upload-pages-artifact@v3
4346
with:
4447
path: site/
4548

4649
deploy:
50+
# Only deploy to GitHub Pages from main
51+
if: github.ref == 'refs/heads/main'
4752
needs: build
4853
runs-on: ubuntu-latest
4954
environment:

docs/overrides/.gitkeep

Whitespace-only changes.

0 commit comments

Comments
 (0)