From 01b987d8d54777ef4258780b39c3007066b4e34c Mon Sep 17 00:00:00 2001 From: Kyle Barron Date: Tue, 31 Oct 2023 19:40:24 -0400 Subject: [PATCH] Don't publish docs on beta release (#184) --- .github/workflows/deploy-mkdocs.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/deploy-mkdocs.yml b/.github/workflows/deploy-mkdocs.yml index 6749a7d2..a3750a4a 100644 --- a/.github/workflows/deploy-mkdocs.yml +++ b/.github/workflows/deploy-mkdocs.yml @@ -55,4 +55,8 @@ jobs: # We don't use {{github.ref_name}} because if triggered manually, it # will be a branch name instead of a tag version. VERSION=$(git describe --tags --abbrev=0) - poetry run mike deploy $VERSION latest --update-aliases --push + + # Only push docs if no letters in git tag + if ! echo $VERSION | grep -q "[A-Za-z]"; then + poetry run mike deploy $VERSION latest --update-aliases --push + fi