From 554f714245a55ddbf82125ae72edc1b6f61795c6 Mon Sep 17 00:00:00 2001 From: rettigl Date: Sun, 19 Jan 2025 21:50:16 +0100 Subject: [PATCH] add link to latest rather than stable for pre-release --- .github/workflows/documentation.yml | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/.github/workflows/documentation.yml b/.github/workflows/documentation.yml index d5cc964..330cd8f 100644 --- a/.github/workflows/documentation.yml +++ b/.github/workflows/documentation.yml @@ -96,9 +96,17 @@ jobs: run: | if [[ $GITHUB_REF == refs/tags/* ]]; then VERSION=${GITHUB_REF#refs/tags/} - echo "folder=specsanalyzer/$VERSION" >> $GITHUB_OUTPUT - rm docs-repo/specsanalyzer/stable - ln -s -r docs-repo/specsanalyzer/$VERSION docs-repo/specsanalyzer/stable + if [[ $VERSION == *a* ]]; then + echo "folder=specsanalyzer/$VERSION" >> $GITHUB_OUTPUT + rm docs-repo/specsanalyzer/latest + ln -s -r docs-repo/specsanalyzer/$VERSION docs-repo/specsanalyzer/latest + else + echo "folder=specsanalyzer/$VERSION" >> $GITHUB_OUTPUT + rm docs-repo/specsanalyzer/stable + ln -s -r docs-repo/specsanalyzer/$VERSION docs-repo/specsanalyzer/stable + rm docs-repo/specsanalyzer/latest + ln -s -r docs-repo/specsanalyzer/$VERSION docs-repo/specsanalyzer/latest + fi elif [[ $GITHUB_REF == refs/heads/main ]]; then echo "folder=specsanalyzer/latest" >> $GITHUB_OUTPUT else