Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix docs publish #74

Merged
merged 1 commit into from
Jun 25, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading