Skip to content

Commit

Permalink
add link to latest rather than stable for pre-release
Browse files Browse the repository at this point in the history
  • Loading branch information
rettigl committed Jan 19, 2025
1 parent f019ee4 commit b43825f
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions .github/workflows/documentation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -97,11 +97,20 @@ jobs:
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
rm docs-repo/specsanalyzer/latest
ln -s -r docs-repo/specsanalyzer/$VERSION docs-repo/specsanalyzer/latest
else
rm docs-repo/specsanalyzer/stable
rm docs-repo/specsanalyzer/latest
ln -s -r docs-repo/specsanalyzer/$VERSION docs-repo/specsanalyzer/stable
ln -s -r docs-repo/specsanalyzer/$VERSION docs-repo/specsanalyzer/latest
fi
elif [[ $GITHUB_REF == refs/heads/main ]]; then
rm docs-repo/specsanalyzer/latest
echo "folder=specsanalyzer/latest" >> $GITHUB_OUTPUT
else
rm docs-repo/specsanalyzer/develop
echo "folder=specsanalyzer/develop" >> $GITHUB_OUTPUT
fi
Expand Down

0 comments on commit b43825f

Please sign in to comment.