Skip to content

Commit

Permalink
fix docs publish
Browse files Browse the repository at this point in the history
  • Loading branch information
kylebarron committed Jun 25, 2024
1 parent fd51c9c commit abf1635
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions .github/workflows/deploy-mkdocs.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
name: Publish docs via GitHub Pages

# Only run manually or on new tags starting with `v`
# Only run manually or on new tags
on:
push:
tags:
- "v*"
- "*"
workflow_dispatch:

jobs:
Expand Down Expand Up @@ -39,8 +39,7 @@ 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 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
# Only push docs if no letters in git tag
if ! echo $VERSION | grep -q "[A-Za-z]"; then
mike deploy $VERSION latest --update-aliases --push
fi

0 comments on commit abf1635

Please sign in to comment.