Skip to content

Commit 48d67c2

Browse files
github: Add docs artifact upload step to CI for pull requests
- Updated `.github/workflows/test-and-publish.yml` to add a step for uploading documentation preview artifacts when triggered by pull requests. - Artifacts are retained for 7 days to aid in documentation review and testing. Assisted-by: Codex
1 parent 528ff5a commit 48d67c2

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

.github/workflows/test-and-publish.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,13 @@ jobs:
2929
run: uv sync --group dev
3030
- name: Build docs with MkDocs
3131
run: uv run mkdocs build --strict
32+
- name: Upload docs preview artifact
33+
if: github.event_name == 'pull_request'
34+
uses: actions/upload-artifact@v4
35+
with:
36+
name: docs-site
37+
path: site/
38+
retention-days: 7
3239

3340
tests:
3441
name: Tests (Python ${{ matrix.python-version }})

0 commit comments

Comments
 (0)