Skip to content

Commit

Permalink
fix publish docs
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidBadura committed Nov 5, 2024
1 parent 72a2f18 commit b8591c5
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/docs-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,16 +65,16 @@ jobs:
- run: git fetch doc gh-pages --verbose

- run: |
current_major=$(echo "$version_current" | cut -d '.' -f 1)
current_minor=$(echo "$version_current" | cut -d '.' -f 2)
current_major=$(echo "${{ steps.current.outputs.result }}" | cut -d '.' -f 1)
current_minor=$(echo "${{ steps.current.outputs.result }}" | cut -d '.' -f 2)
latest_major=$(echo "$version_latest" | cut -d '.' -f 1)
latest_minor=$(echo "$version_latest" | cut -d '.' -f 2)
latest_major=$(echo "${{ steps.latest.outputs.result }}" | cut -d '.' -f 1)
latest_minor=$(echo "${{ steps.latest.outputs.result }}" | cut -d '.' -f 2)
if [ "${{ steps.current.outputs.result }}" = "${{ steps.latest.outputs.result }}" ]
then
# Here we deploy a new latest version
mike deploy latest --config-file docs/mkdocs.yml --title="${{ steps.current.outputs.result }} (latest)" --update-aliases --alias-type=redirect --push --remote doc
mike deploy latest --config-file docs/mkdocs.yml --title="${{ steps.current.outputs.result }} (latest)" --push --remote doc
elif [ "$current_major" -lt "$latest_major" ] || \
{ [ "$current_major" -eq "$latest_major" ] && [ "$current_minor" -lt "$latest_minor" ]; }
then
Expand Down

0 comments on commit b8591c5

Please sign in to comment.