Skip to content

Commit a6bfcad

Browse files
authored
Merge pull request #7 from switchbox-data/publish-docs
publish template docs on push to main
2 parents 8d79759 + a422282 commit a6bfcad

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

.github/workflows/ci.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,3 +27,24 @@ jobs:
2727
git config --global user.email "[email protected]"
2828
- name: Run tests
2929
run: uv run pytest -q
30+
31+
deploy-docs:
32+
if: github.event_name == 'push'
33+
needs: [test]
34+
runs-on: ubuntu-latest
35+
steps:
36+
- uses: actions/checkout@v4
37+
- name: Set up Python
38+
uses: actions/setup-python@v5
39+
with:
40+
python-version: '3.12'
41+
- name: Install uv
42+
uses: astral-sh/setup-uv@v6
43+
with:
44+
enable-cache: 'true'
45+
- name: Install deps
46+
run: uv sync --group dev
47+
- name: Check if documentation can be built
48+
run: uv run mkdocs build -s
49+
- name: Deploy documentation
50+
run: uv run mkdocs gh-deploy --force

0 commit comments

Comments
 (0)