From abf1635e9e68af5dfe89fb31bee25435f321d442 Mon Sep 17 00:00:00 2001 From: Kyle Barron Date: Tue, 25 Jun 2024 16:17:12 -0400 Subject: [PATCH] fix docs publish --- .github/workflows/deploy-mkdocs.yml | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/.github/workflows/deploy-mkdocs.yml b/.github/workflows/deploy-mkdocs.yml index 2eaa7c4..75bfdcc 100644 --- a/.github/workflows/deploy-mkdocs.yml +++ b/.github/workflows/deploy-mkdocs.yml @@ -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: @@ -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