Skip to content

Commit

Permalink
fix docs publish (#188)
Browse files Browse the repository at this point in the history
  • Loading branch information
kylebarron committed Nov 1, 2023
1 parent 2a23fb7 commit 9fea5c5
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/deploy-mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,8 @@ jobs:
# will be a branch name instead of a tag version.
VERSION=$(git describe --tags --abbrev=0)
# Only push docs if no letters in git tag
if ! echo $VERSION | grep -q "[A-Za-z]"; then
# Only push docs if no letters in git tag after the first character
# (usually the git tag will have v as the first character)
if ! echo $VERSION | sed 's/^.//' | grep -q "[A-Za-z]"; then
poetry run mike deploy $VERSION latest --update-aliases --push
fi

0 comments on commit 9fea5c5

Please sign in to comment.