Skip to content

Commit

Permalink
fix version determination, and add link to stable version
Browse files Browse the repository at this point in the history
  • Loading branch information
rettigl committed Oct 25, 2024
1 parent efd67a4 commit 895b001
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/documentation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,8 @@ jobs:
if [[ $GITHUB_REF == refs/tags/* ]]; then
VERSION=${GITHUB_REF#refs/tags/}
echo "folder=sed/$VERSION" >> $GITHUB_OUTPUT
rm docs-repo/sed/stable
ln -s -r docs-repo/sed/$VERSION docs-repo/sed/stable
elif [[ $GITHUB_REF == refs/heads/main ]]; then
echo "folder=sed/latest" >> $GITHUB_OUTPUT
else
Expand All @@ -122,7 +124,7 @@ jobs:
- name: Update switcher.json
run: |
VERSION=`grep "<title>SED documentation." index.html | sed -n 's/.*SED \(.*\) documentation.*/\1/p'`
VERSION=`grep "<title>SED documentation." sphinx-docs/index.html | sed -n 's/.*SED \(.*\) documentation.*/\1/p'`
echo "python docs-repo/sed/update_switcher.py docs-repo/sed/switcher.json $GITHUB_REF $VERSION"
python docs-repo/sed/update_switcher.py docs-repo/sed/switcher.json $GITHUB_REF $VERSION
Expand Down

0 comments on commit 895b001

Please sign in to comment.