Skip to content

Commit

Permalink
fix build docs for real
Browse files Browse the repository at this point in the history
  • Loading branch information
nvnieuwk committed Feb 4, 2025
1 parent af9122e commit 2f356ad
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions .github/workflows/build-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,16 @@ jobs:
- name: Install dependencies
run: pip install mkdocs-material pymdown-extensions pillow cairosvg mike

- name: Build docs
- name: Build dev docs
if: ${{ github.head_ref || github.ref_name }} == 'dev'
run: |
[[ ${{ steps.version.outputs.version }} == "dev" ]] && mike deploy --push ${{ steps.version.outputs.version }} || mike deploy --push --update-aliases ${{ steps.version.outputs.version }} latest
mike deploy --push dev
- name: Build production docs
if: ${{ github.head_ref || github.ref_name }} == 'main'
run: |
mike deploy --push --update-aliases ${{ steps.version.outputs.version }} latest

- name: Set default docs
run: mike set-default --push latest

0 comments on commit 2f356ad

Please sign in to comment.