Skip to content

Commit

Permalink
try to fix docs building again
Browse files Browse the repository at this point in the history
  • Loading branch information
nvnieuwk committed Nov 20, 2024
1 parent 6b3841c commit 34bcdba
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/build-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,20 +32,24 @@ jobs:
version=${{ steps.read_yml.outputs['template']['version']}}
[[ $version == *"dev"* ]] && pipeline_version="dev" || pipeline_version=$version
echo "pipeline_version=$pipeline_version" >> $GITHUB_OUTPUT
- name: Setup git user
run: |
git config --global user.name "${{github.actor}}"
git config --global user.email "${{github.actor}}@users.noreply.github.com"
- uses: actions/cache@v3
with:
key: mkdocs-material-${{ steps.date.cache_id }}
key: mkdocs-material-${{ steps.date.outputs.cache_id }}
path: .cache
restore-keys: |
mkdocs-material-
- name: Install dependencies
run: pip install mkdocs-material pymdown-extensions pillow cairosvg mike

- name: Build docs
run: |
[[ ${{ steps.version.pipeline_version }} == "dev" ]] && mike deploy --push ${{ env.pipeline_version }} || mike deploy --push --update-aliases ${{ env.pipeline_version }} latest
[[ ${{ steps.version.outputs.pipeline_version }} == "dev" ]] && mike deploy --push ${{ steps.version.outputs.pipeline_version }} || mike deploy --push --update-aliases ${{ env.pipeline_version }} latest
- name: Set default docs
run: mike set-default --push latest

0 comments on commit 34bcdba

Please sign in to comment.