Skip to content

Commit 05448f4

Browse files
authored
[+] add GHA workflow to publish devel docs (#599)
1 parent f450899 commit 05448f4

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

.github/workflows/build.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,5 +170,12 @@ jobs:
170170
- name: Install dependencies
171171
run: pip install mike mkdocs-material mkdocs-glightbox
172172

173+
- name: Check if we should push to gh-pages
174+
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/master' }}
175+
run: |
176+
echo ${{ github.event_name }}
177+
echo ${{ github.ref }}
178+
echo "push_opt=--push" >> $GITHUB_ENV
179+
173180
- name: Build mkdocs
174-
run: mike --debug deploy devel
181+
run: mike ${{ env.push_opt }} deploy devel

0 commit comments

Comments
 (0)