Skip to content

Commit

Permalink
[+] add GHA workflow to publish devel docs (#599)
Browse files Browse the repository at this point in the history
  • Loading branch information
pashagolub authored Dec 16, 2024
1 parent f450899 commit 05448f4
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -170,5 +170,12 @@ jobs:
- name: Install dependencies
run: pip install mike mkdocs-material mkdocs-glightbox

- name: Check if we should push to gh-pages
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/master' }}
run: |
echo ${{ github.event_name }}
echo ${{ github.ref }}
echo "push_opt=--push" >> $GITHUB_ENV
- name: Build mkdocs
run: mike --debug deploy devel
run: mike ${{ env.push_opt }} deploy devel

0 comments on commit 05448f4

Please sign in to comment.