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 b126c07 commit 554f714
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions .github/workflows/documentation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 554f714

Please sign in to comment.