Skip to content

Commit 6cf420a

Browse files
authored
deploy only when on main branch
1 parent 56be901 commit 6cf420a

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

.github/workflows/ci.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,4 +31,8 @@ jobs:
3131
with:
3232
python-version: 3.x
3333
- run: pip install -r requirements.txt
34-
- run: mkdocs gh-deploy --force
34+
- name: build documentation
35+
run: mkdocs build
36+
- name: deploy documentation
37+
if: ${{ github.ref == 'main' }}
38+
run: mkdocs gh-deploy --force

0 commit comments

Comments
 (0)